Hi all,
I am very new to microcontrollers,and I bought a Zilog Encore XP dev board. I need to interface it with a compass module using a uart port. I have tried to do it but have had no success yet.
I have initialised uart1, using the api, and enable the receive interrupts. I get an interrupt, and status register errors even if nothing is even connected to the port pins. I also get errors if the module is connected.
Am I meant to have pull-up/down resistors in place?
The compass module is a TTL module but requires 5v input - might I need a level converter?
What would be the normal start-up sequence for something like this - initialise everything, then apply power to compass module (it will start transmitting compass headings in continuous mode by default)?
Sorry if I have confused anyone, I am a little desparate
Cheers,
Rob
I am very new to microcontrollers,and I bought a Zilog Encore XP dev board. I need to interface it with a compass module using a uart port. I have tried to do it but have had no success yet.
I have initialised uart1, using the api, and enable the receive interrupts. I get an interrupt, and status register errors even if nothing is even connected to the port pins. I also get errors if the module is connected.
Am I meant to have pull-up/down resistors in place?
The compass module is a TTL module but requires 5v input - might I need a level converter?
What would be the normal start-up sequence for something like this - initialise everything, then apply power to compass module (it will start transmitting compass headings in continuous mode by default)?
Sorry if I have confused anyone, I am a little desparate
Cheers,
Rob