Using C code codewarrior how can I create a loop that it will display 1 through 9 with a delay...
/Exaple 1a Turn on every other seguent on 7-seg display #include chideth) #include /* derivative information */ #pragna LINK-INFO DERIVATIVE "nc9s12dg256b" /CONNon defines and nacros/ 0 #include "nain-asn h" /* interface to the assenbly nodule */ /*put your own code here / PLL init() 52 // set systen clock frequency to 24 MHz 28. DDREOxff DDRP 0xff // turn on every other led and segnent on 7-seg displays Port B is output Port J is output Port P is output /1 enable LED // enable all 7-segnent displays 24 . * 7 for (j 0:j10000:3 +1) ns delay (15) 2418 ns delay (15) PORTB 0x00 tor) /* vait forever