I've attached the project bundled file. please look into it and tell me where it goes wrong.
I took the right to change the sources, see attached.
Thank you, Bob,
1.Still, there are no Values in ADCout. (step execution in debug mode)
2. I couldn't understand why you write Wait(x) At ln16 and what is its use there?
ADC will not work correctly when debugging. Just let the program run and then click a breakpoint at the assignment ADCout = ... You will see the value of the previous conversion. I cannot see where the input voltage comes from. Schematic??
No value needs explanation, every value can be valid. So what shows ADCout?
Wait() is just for readability, everyone will see that your program waits for something to happen.
while(); // will cast a warning
} // Needs 3 lines instead of one
ADCout shows 0x00000... value.
And the schematic is a voltage divider network with an LDR and Resister. The analog IP is taken from the Node. Vref 3.3v
Thank You Bob
Which Cypress development kit are you using? CY8CKIT-0?? <- number??
I'm using 042
Uc is cy8c4247lqi-bl-483
cy8c4247lqi-bl-483t is the PSoC chip, the board (pcb) when a cypress one starts with CY8CKIT-
Or what kind of board are you using?
I'm using the CY8CKIT-042 Pioneer Baseboard.
I presume: CY8CKIT-042 BLE Pioneer Kit. Port 3 pin 4 might be used internally as I2C_SDA for the I2C-UART bridge, see schematics. Try another input (port 3 pin 0 at J2 pin 1)
Thank you Bob,
I understand, But When I'll needing 4-5 ADC that time will i be able to use the P3.4 and P3.5? I guess its multiplexed with the I2C proto