sarathsnairpoonjar
Member level 2
- Joined
- Nov 12, 2012
- Messages
- 50
- Helped
- 2
- Reputation
- 4
- Reaction score
- 2
- Trophy points
- 1,288
- Location
- Cochin,Kerala,India
- Activity points
- 1,560
disable from where?
mikroc?
mikroc?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
CM1CON0 = 0;
CM2CON0 = 0;
CPSON_bit = 0;
Disable the comparators and the capacitive sensing module:
Code:CM1CON0 = 0; CM2CON0 = 0; CPSON_bit = 0;
Does the program run with external oscillator?
- - - Updated - - -
Change value of OSCCON to 0x70.
void main()
{
OSCCON=0x72;
ANSELA=0;
TRISA0_bit=0;
TXCKSEL_bit=1;
RXDTSEL_bit=1;
//UART1_Init(9600);
SPBRGH = 0;
SPBRGL = 12;
BRGH_bit = 0;
BRG16_bit = 0;
SYNC_bit = 0;
SPEN_bit = 1;
TX9_bit = 0;
TXEN_bit = 1;
delay_ms(500) ;
CPSON_bit=0;
C1ON_bit=0;
GIE_bit=0;
TRISA1_bit=1;
TRISC5_bit=0;
TRISC4_bit=1;
// initialize UART1 module
while (1)
{
TXREG = 'A';
RC0_bit=1;
delay_ms(1000);
RC0_bit=0;
delay_ms(1000);
} }
no tahmid its not working....Try with this code:
Code:void main() { OSCCON=0x72; ANSELA=0; TRISA0_bit=0; TXCKSEL_bit=1; RXDTSEL_bit=1; //UART1_Init(9600); SPBRGH = 0; SPBRGL = 12; BRGH_bit = 0; BRG16_bit = 0; SYNC_bit = 0; SPEN_bit = 1; TX9_bit = 0; TXEN_bit = 1; delay_ms(500) ; CPSON_bit=0; C1ON_bit=0; GIE_bit=0; TRISA1_bit=1; TRISC5_bit=0; TRISC4_bit=1; // initialize UART1 module while (1) { TXREG = 'A'; RC0_bit=1; delay_ms(1000); RC0_bit=0; delay_ms(1000); } }
harware is working fineIs your hardware okay?