This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
I don't have much electronics background, so please excuse the beginner questions.
I'm trying to setup the circuit for the "ctpl_ex3_comp_e_monitor" exercise in the FRAM-utilities CTPL examples page 28)
When I run the given example code, I can see the LED1 blinking as expected in the described sequence, but I want to see the backup/restore operation in action, so I'm trying to setup the supporting circuit (as mentioned below). I ran the code as it is without any additional circuits and couldn't get the backup/restore to work as expected.
The circuit in the documentation is as follows:
/ MSP-EXP430FR5994 // --------------- // /|\| P1.4|---> Vcc // | | (C5)P1.5|---> Vcc/2 (350k/350k voltage divider) // --|RST P4.7|---> GND // | | // | P1.0|---> LED1 // | |
However, I'm confused - shouldn't the P1.5 pin be an input <--- (it invokes an interrupt) rather than an output ---> ?
Similarly, are P1.4 and P4.7 outputs or inputs ? should they be connected to Vcc and GND respectively ?
Does anyone have a clear circuit diagram or explain a bit in detail how to get this example working ?
Thank you very much.
The initGpio() function makes all GPIO pins outputs.
The initCompMonitor() function make P1.4 output a high signal, and P4.7, a low signal. Apparently, you are supposed to use these two pins to construct the voltage divider.
**Attention** This is a public forum