brunofunchas
Full Member level 3
Hi,
I am using PIC16F887, QL200 development board and MikroC. My project is very simple and consists only in using digital inputs/outputs.
I should define the following SFR:
CM1CON0 = 0x00; // Comparator 1 set off
CM2CON0 = 0x00; // Comparator 2 set off
CM2CON1 = 0x02; // Comparator 2 Timer1 Control register default set
ANSEL = 0x00; // ALL set as Digital I/O
ANSELH = 0x00; // ALL set as Digital I/O
also the TRIS registers.
There are others SFR that I should define also?
Thanks,
Bruno
I am using PIC16F887, QL200 development board and MikroC. My project is very simple and consists only in using digital inputs/outputs.
I should define the following SFR:
CM1CON0 = 0x00; // Comparator 1 set off
CM2CON0 = 0x00; // Comparator 2 set off
CM2CON1 = 0x02; // Comparator 2 Timer1 Control register default set
ANSEL = 0x00; // ALL set as Digital I/O
ANSELH = 0x00; // ALL set as Digital I/O
also the TRIS registers.
There are others SFR that I should define also?
Thanks,
Bruno
Last edited: