Threading allows functions to execute concurrently. The example below shows two threads switching between running and sleeping. As the RTI ISR executes it takes the current process off the schedule (list of processes) and switches in the next process on the schedule. Once all processes have been removed from the schedule the “Scheduler” steps in and creates a new schedule.
Archive for April, 2010
4/16: Hex Memory Dump
UncategorizedShawnNo CommentsHere is a nice looking hex dump for those interested.
ADDR | B0 B1 B2 B3 B4 B5 B6 B7 B8 B9 BA BB BC BD BE BF | 0123456789ABCDEF =====|==================================================|================= 0000 | FF D8 FF E0 00 10 4A 46 49 46 00 01 02 01 00 48 | ......JFIF.....H 0010 | 00 48 00 00 FF ED 0A 96 50 68 6F 74 6F 73 68 6F | .H......Photosho 0020 | 70 20 33 2E 30 00 38 42 49 4D 04 04 07 43 61 70 | p 3.0.8BIM...Cap
4/7: HC12 Read String or Char
Axiom, HC12Shawn2 CommentsUse this to read a string on the HC12. What this function does is check to see if there is an available character in the HC12’s Serial Communication Interface Port 0 Data Register. If you need to use this function with 9bit values the function needs to be adjusted to incorporate SC0DRH. Similarity if you would like to use Port 1 change SC0 to SC1.
UPDATE: I added the single char version because thats more basic.
Read the rest of this entry »