Axiom, HC12ShawnNo Comments
Having trouble switching from cooperative tasking? One of the easiest oversights is your “sei” and “cli” sections.
The diagram below shows how you can run into problems within the critical sections of code. In this example when the memory allocation ends the interrupts are enabled with “cli” removing the critical section around the linked list manager. Once this happens RTI ISR fires and switches in thread 2. This example shows thread 2 popping an item from this list breaking the flow inside of thread 1.

Read the rest of this entry »
Axiom, HC12ShawnNo Comments
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.

Read the rest of this entry »
UncategorizedShawn1 Comment
If anyone is here looking for FFXI-Garuda.com post a comment and I’ll bring it back online.
UncategorizedShawnNo Comments
Here 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
Read the rest of this entry »
Axiom, HC12Shawn2 Comments
Use 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 »
HTCShawnNo Comments

A – USB Ground
B – +5V allows phone to suck 1000mA to charge faster
C – +USB Data Line
D – -USB Data Line
E – +5V @ 1000mA (If you only have 500mA ground B)
1 – Video Out
2 – Audio Right
3 – Ground (Video Sense)
4 – No connection otherwise you loose video
5 – Audio Ground
6 – Audio Left
Shield – Ground / Cable Shield
Tags: ExtUSB, HTC
Axiom, HC12ShawnNo Comments
This is the jump table from the CML12S-DP256 v2.7F. Use this if you want to access MON12 functionality inside of your programs.
Read the rest of this entry »
Axiom, HC12ShawnNo Comments
Using code from the manufacturer Axiom and several data sheets to figure out what they are talking about I finally found how to send your own character to the CGRAM (Character Generator RAM).

Read the rest of this entry »
VerilogShawnNo Comments
Quick example accomplishing an RS Latch with Verilog Data Flow.
Read the rest of this entry »
UncategorizedShawnNo Comments
Ever needed to print out a hex string but needed a converter. Probably not because its build into most string classes. Though if you can’t use a string class then you might just need something like this.
Read the rest of this entry »