I'm using TM4C123GH6PM as a microcontroller for this energy project I'm making. I use it to collect voltage and current readings. Another device called TelosB is connected to the Tiva board using UART interface to gather/transmit data. These readings are then received to a base station mote (also TelosB).
When I use Tiva with my PC in debug mode, everything is working smoothly, the values I gather are correct. When it reads 220V in the IAR watch (debug), the base station also receives 220V. However, I want to make it stand alone and use the device mode as its power source. I used a 5V/1A DC regulated charger adapter as a power source. The problem now is that all data becomes erroneous. For example, I expect that the value is 220V, but the gathered data is only at 1V. I suspect this is a hardware, power supply problem but where could possibly be the error?
I also tried following the suggested reply of Francisco in this thread https://e2e.ti.com/support/microcontrollers/stellaris_arm/f/471/t/322254 by instead having the supply of the Tiva at the +VBUS pins beside SW1, yet it still had the same problem.
FYI, these are my ADC and UART pin configurations:
Voltage:
VT1 --> PE1
VT2 --> PD0
Current:
CT1 --> PE2
CT2 -->PD1
For TelosB:
UART: PE5 TX, PE4 RX
Digital In --> PE3
Digital Out --> PA6
Anyone there kind to help? This is an urgent matter. :(
Thanks,
--Lili