View previous topic :: View next topic |
Author |
Message |
drolleman
Joined: 03 Feb 2011 Posts: 116
|
How to run my init code before ccs init code ? |
Posted: Sat Sep 01, 2018 8:54 pm |
|
|
Before ccs initializes things like the uart I want my init code to run first. How do I do this?
What I need to do is to set outputs as quick as possible.
thx David |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Sat Sep 01, 2018 9:58 pm |
|
|
See the items in bold below:
Quote: | #include <18F46K22.h>
#device NO_DIGITAL_INIT
#fuses INTRC_IO, NOWDT, BROWNOUT, PUT, NOPBADEN
#use delay(clock=4M)
#use rs232(baud=9600, UART1, ERRORS, NOINIT)
//=================================
void main(void)
{
while(TRUE);
}
|
These are described in the CCS manual:
http://www.ccsinfo.com/downloads/ccs_c_manual.pdf |
|
|
drolleman
Joined: 03 Feb 2011 Posts: 116
|
|
Posted: Sat Sep 01, 2018 11:20 pm |
|
|
Thank you.
It still uses 4, but I can live with that. |
|
|
|