So, can we infer that all is well now and is working ok?
(a few things are getting lost in the English translation)
So, can we infer that all is well now and is working ok?
(a few things are getting lost in the English translation)
Yes my dear friend work 100% ok.
Many hank's o all you !!!
I little think about some small problems but in core all work good.
Here is little more about what I probe to do.
In project I have one RS232 conection via hser in 877 to pc via max 232,one 4x20 chr lcd (that problematic hehehe) and 4x4 matrix keyboard.
Device must work on next way:
1.it must send no:. of key what is push by persone who use it.
2.in middle time it must display what return application from pc via rs232 on lcd.
3.application return some instructions like words like "DOG" or "CAT"or...and position where it will be displayed on lcd by line and row - position in line 1,2,3 or 4.
It is something like terminal for PC.
For now I success send key no:. with mister_e rutine for matrix keyboard
But I stil look hove to configure that famose from PC to PIC...
Maybe somethin like 1,5,DOG or ???
And hove to I decode that ?
I was use 877 with Nokia 6210 and there I was use skip xxx chr and get message and decode it like bite but here I dont know hove to start.
Regards to all ( any suggest is welcome).
Sorry for bad english again !!!
Robert
This might get you started.
Read all data from the PC into an array in the PIC.
The above will wait for "?" (could be whatever you want) and the next part will put the rest of the data in an array that has 8 places.Code:[WAIT("?"),STR NUMS\8]
The array will start at 0, so if you wrote it out it would look like this:
NUMS[0]
NUMS[1]
NUMS[2]
NUMS[3]
NUMS[4]
NUMS[5]
NUMS[6]
NUMS[7]
Now you can make each part a variable that is a bit easier to work with:
X1 = NUMS[0]
X2 = NUMS[1]
X3 = NUMS[2]
X4 = NUMS[3]
X5 = NUMS[4]
X6 = NUMS[5]
X7 = NUMS[6]
X8 = NUMS[7]
Now lets say X1 is equal to 1 and you want to start display at line 1 position 2.
$80 is line 1 position 1. (refer to the manual for more)Code:LCDOUT $FE, $80 + X1
Now to display some of the other data:
X2 = DCode:LCDOUT $FE,$80 + X1,X2,X3,X4
X3 = O
X4 = G
Something like that maybe.
Dave
Always wear safety glasses while programming.
Bookmarks