ADGAN
Full Member level 5
- Joined
- Oct 9, 2013
- Messages
- 295
- Helped
- 4
- Reputation
- 8
- Reaction score
- 4
- Trophy points
- 18
- Activity points
- 1,837
Endless while loop is not executing
Hello everybody!
I'm using doing a project by referring to the MCP3901 reference design. (**broken link removed**) I have all the necessary hardware. I modified the program according to my requirement(I need to display the energy consumption). The program compiles but I found out that it only execute once even though its a endless while loop. I'm using Proteus to simulate the program. (Not the whole project only some parts). Also I don't see any data moving on the SPI data bus when I use the SPI debugger.
This is the code:
View attachment AEBS.rar
Pls help. Thanx in advance.
Hello everybody!
I'm using doing a project by referring to the MCP3901 reference design. (**broken link removed**) I have all the necessary hardware. I modified the program according to my requirement(I need to display the energy consumption). The program compiles but I found out that it only execute once even though its a endless while loop. I'm using Proteus to simulate the program. (Not the whole project only some parts). Also I don't see any data moving on the SPI data bus when I use the SPI debugger.
This is the code:
View attachment AEBS.rar
Pls help. Thanx in advance.