Is it possible to use the UART and I2C at the same time on these devices. The documentation does not make it clear and I want to use a physically small chip not some 100 pin monster for my project.
xvart:
Is it possible to use the UART and I2C at the same time on these devices. The documentation does not make it clear and I want to use a physically small chip not some 100 pin monster for my project.
yes as long as you use seperate USCI modules…
use UCB0 for I2c and use UCa0 for uart
My header has this,
#define USCIAB0TX_ISR(func) ISR_VECTOR(func, “.int06”) /* 0xFFEC USCI A0/B0 Transmit */
#define USCIAB0RX_ISR(func) ISR_VECTOR(func, “.int07”) /* 0xFFEE USCI A0/B0 Receive */
I am assuming from this that I will need to check the source of the interrupt A0 or B0?
xvart:
My header has this,#define USCIAB0TX_ISR(func) ISR_VECTOR(func, “.int06”) /* 0xFFEC USCI A0/B0 Transmit */
#define USCIAB0RX_ISR(func) ISR_VECTOR(func, “.int07”) /* 0xFFEE USCI A0/B0 Receive */
I am assuming from this that I will need to check the source of the interrupt A0 or B0?
It depends on how you use the functions… in many cases polling the status is better than using interrupts…
I see your point it’s not like it’s going to do anything else. I’ve got the modbus implemented and it’s just going to hang off the end of the serial receiver. It’s a “get frame->process->send response->get frame” thing.
Thanks for the comments, just for laughs we plan to use these to drive the peripheral stuff on a telescope, see http://www.mso.anu.edu.au/skymapper/index.php. We have a stack of temp sensors and fans we need to keep an eye on.