I have an amplifier placed in a closet. It's controlled remotely using a PC with an IR-transmitter.
Now I want to hook it up to an arduino in order to sniff the data displayed on the amplifiers VFD-display. The display controller is a PT6315 PT6315 pdf, PT6315 Description, PT6315 Datasheet, PT6315 view ::: ALLDATASHEET ::: and it seems to use SPI (MODE3).
I need some help parsing the data sent to the PT6315.
The protocol used is described in the datasheet. The only thing that may be missing is how the chip is wired to the VFD segments. What do you want to achieve? You may have to take into account that the chip is able to accept burst writes from the MCU, so you have to check the SS line because it might be LOW longer than you may expect it.
It's been a while, but I've decided to give this project another go.
I think I'm close, but there seems to be something wrong with my code. I can intercept some of the data sent to the display, but not all. After "Command 3" (Address Setting), 36 bytes of data should be sent to the display. I used to be able to read this, but not any more. Right now I only get the first 10 bytes.
I guess there is some kind of timing issue with my current setup. Any help is appreciated.
You should declare the global variables used in the interrupt handler as "volatile". Otherwise the compiler might optimize in a way that does not address your expectations.
pylon:
You should declare the global variables used in the interrupt handler as "volatile". Otherwise the compiler might optimize in a way that does not address your expectations.
Good suggestion. I've tried that, but it didn't make any difference.