i want to print the data to the uart to see the values in the uart..i am unable to initialize the uartt..
what are the things to be added for the initialization of the uart?
i want to print the data to the uart to see the values in the uart..i am unable to initialize the uartt..
what are the things to be added for the initialization of the uart?
Hi Naveenkumar,
What sensor are you using?
Is this your setup? (Sensor -- UART--nrf52 -- UART --PC )
There is a single UART/UARTE on the nRF52832. It can either be configured to use EasyDMA(UARTE) or not use EasyDMA(UART). UARTE is recommended, and the UART registers are considered deprecated in the latest version of the product specification.
If you need two UARTE peripherals, then you can find that on the nRF52840.
(It is possible to multiplex the UART pins, i.e. you switch between two pin configurations. However, this will still only be able to use one UART at the time.)
i am using HMC5883L...in this i am getting the values from the sensor through uart..but my uart is not working..
i am using HMC5883L...in this i am getting the values from the sensor through I2c..but my uart is not workin
Hi Naveenkumar,
Please be concise in your description.
So this is your setup if I understand you correctly:
[Sensor --I2C-- nRF52 --UART-- PC]
Since your sensor is using TWI(i2c) you can use the TWI sensor example as reference and change out the "LM75" sensor with your sensor in the application.
Hi Naveenkumar,
Please be concise in your description.
So this is your setup if I understand you correctly:
[Sensor --I2C-- nRF52 --UART-- PC]
Since your sensor is using TWI(i2c) you can use the TWI sensor example as reference and change out the "LM75" sensor with your sensor in the application.