Part Number: MSP430FR2355
Other Parts Discussed in Thread: HDC2010
I have been looking through the documentation and forums and haven't been able to clear up the following programming issue:
I would like to configure an FR2355 as a slave. The master (also an MSP430 Launchpad for development) should be able to read from and write to individual data registers on the slave. It appears the slave interrupt vector must be agile enough to understand if the master is addressing it with UCTR set or unset, ie. writing or reading data from the register. The first byte of received data is always the register address. If the master is reading the register, the code should point to it and load its value into UCB0TXBUF. This is sometimes handled with repeated start. If, however, the master is over-writing the register and perhaps the registers following it, the code has to collect this data and parse it with UCB0RXBUF. It sure looks like there has to be a branching capability.
I believe this can be handled by firmware in the MSPWare driver library, but I would like to implement it on the registry level so I can understand what is going on. Is there documentation or code examples available that show how to do this?
Would it be better to setup independent registers in RAM for writing and reading?