PIC 16F Chip Configuration
Posted: Thu Nov 11, 2021 10:36 pm
In Flowcode 9, some of the processor configuraton can be set in the Project Options/Configure menu (Oscillator, Watchdog, etc.) I see this creates two entries in the C code, e.g.
//Chip Configuration Settings
__PROG_CONFIG(0x1, 0x7DC);
__PROG_CONFIG(0x2, 0x1633);
I want to configure the ODCONC register of my 16F1786, which controls outputs in the C register to be open drain, specifically registers 0,1,2,3 and 7.
I would like advice on how to add a "C Code" insert into my Flow Code to accomplish this. The data sheet indicates this register is in Bank 5, 28Eh.
Thank you!
//Chip Configuration Settings
__PROG_CONFIG(0x1, 0x7DC);
__PROG_CONFIG(0x2, 0x1633);
I want to configure the ODCONC register of my 16F1786, which controls outputs in the C register to be open drain, specifically registers 0,1,2,3 and 7.
I would like advice on how to add a "C Code" insert into my Flow Code to accomplish this. The data sheet indicates this register is in Bank 5, 28Eh.
Thank you!