Hello Everyone,
I am working on MSP430FR2633 Capacitive touch Micro controller.
I have developed application for Capacitive touch buttons,Slider with our own designed board and it is working fine with the data retention using the FRAM technology.
ISSUE:
I am storing data of the capacitive touch button status in FRAM which is storing fine but when stored in more than one address for more than one button the behavior of microcontroller changes as suddenly the buttons go off when i touch some other button.
What might be the issue?
below is the method i am storing data .
#define FRAM_TEST_START1 0xCABB
#define FRAM_TEST_START2 0xCABC
#define FRAM_TEST_START3 0xCABD
#define FRAM_TEST_START4 0xCABE
#define FRAM_TEST_START5 0xCABF
Pointers to access the adress data
uint8_t * stored_data1,* stored_data2,* stored_data3,* stored_data4,* stored_data5;
Writing data to the FRAM address
FRAMCtl_write8(Delay_set1,(uint8_t *) FRAM_TEST_START1,1);
delay_ms(1);
FRAMCtl_write8(Delay_set1,(uint8_t *) FRAM_TEST_START2,1);
delay_ms(1);
FRAMCtl_write8(Delay_set1,(uint8_t *) FRAM_TEST_START3,1);
delay_ms(1);
FRAMCtl_write8(Delay_set1,(uint8_t *) FRAM_TEST_START4,1);
delay_ms(1);
FRAMCtl_write8(Delay_set1,(uint8_t *) FRAM_TEST_START5,1);
delay_ms(1);
data access from the adrress
stored_data1 = (uint8_t *) FRAM_TEST_START1;
__delay_cycles(1000);
stored_data2 = (uint8_t *) FRAM_TEST_START2;
__delay_cycles(1000);
stored_data3 = (uint8_t *) FRAM_TEST_START3;
__delay_cycles(1000);
stored_data4 = (uint8_t *) FRAM_TEST_START4;
__delay_cycles(1000);
stored_data5 = (uint8_t *) FRAM_TEST_START5;
__delay_cycles(1000);
Thanks and Regards,
Sanath Rai