Hi
I am working on a project which is to read some text from external memory and turn on LED acording to the morse code. E.g. for ABC first the LED 1 would come on and the for B LED's 2 3 and 4 would come on and for C LED's 2 and 4 would come on. I am using PIC16F84a and IAR workbench or maby Flowcode.
At the moment i'm just trying to get a simple form of this to work. All i want to do is read a word from within the code and turn on LED's acordingly.
I am thinking of making a table with all the possible output patterns (e.g. for a = 10000, b =01110,c = 01010) in the alphabetic sequence. Then i could ask the program to refer to the table to see which LED's to turn on.
Where i need help is where do i save the text being read and how do i use it as an input? so in other words how do i say if first letter of text is 'A' go to table and output pattern? And how could i impliment the table?
BTW I'm not very good at C
.
Any Help will be apreciated! Thanks
I am working on a project which is to read some text from external memory and turn on LED acording to the morse code. E.g. for ABC first the LED 1 would come on and the for B LED's 2 3 and 4 would come on and for C LED's 2 and 4 would come on. I am using PIC16F84a and IAR workbench or maby Flowcode.
At the moment i'm just trying to get a simple form of this to work. All i want to do is read a word from within the code and turn on LED's acordingly.
I am thinking of making a table with all the possible output patterns (e.g. for a = 10000, b =01110,c = 01010) in the alphabetic sequence. Then i could ask the program to refer to the table to see which LED's to turn on.
Where i need help is where do i save the text being read and how do i use it as an input? so in other words how do i say if first letter of text is 'A' go to table and output pattern? And how could i impliment the table?
BTW I'm not very good at C
Any Help will be apreciated! Thanks