Hey everyone!
For some reason, I can’t get correct data from the RFID2 when I write to a register and then read from it. According to DLP’s data sheet, if I want to write a value of 0x31 to register 0x09, I need to send this across the UART:
010A0003041009310000
But, the thing I can’t figure out is how the RFID2 is expecting the data to come across the UART. In their data sheet DLP says 01 = 0x01, 03 = 0x03, …. in other words those are hex values above. But then they have a small note below that says:
Note that each character is sent as a binary value. For example, 0108000304FF0000 is sent to the RFID2 as 16 8-bit bytes: 0x30, 0x31, 0x30, 0x38, 0x30, etc...
I tried sending the array of bytes both ways…..first sending them as the bytes they represent:
tx(0x01)
tx(0x0A)
tx(0x00)
tx(0x03)
........
and second I tried splitting the byte, and sending the ascii value of each nibble like it shows in the note, but I can’t seem to read the correct value I stored in the register. Please help! Which way is it?
Also….the data sheet mentions using baud rates 9600, and 115200, but doesn’t say which to use. Which baud rate does it expect me to use?
Lastly, there is a reset pin (pin 3), but the data sheet doesn’t say if I need to reset the RFID2 at the beginning of my routine to initialize anything. Is the reset pin high or low enabled?
Thanks again for all the help! I really appreciate it!