Other Parts Discussed in Thread: , ENERGIA
Tool/software:
Hi
I am a Japanese engineer.
I am using UART to communicate between PGA460SPM-EVM and Raspberry Pi Pico and programming in Python.
The ultrasonic sensor implemented in this EVM is UTR-1440K-TT-R (PUI Audio), so I am trying to rewrite the frequency to 40kHz (0x32).
This IC needs to unlock the EEPROM, so I sent 0x69,0x68 to the EE_CNTRL register (40).
After this I wrote 0x32 to the FREQUENCY register (1c).
Then I read the FREQUENCY register and found that it was still at the default value of “8c”.
Moreover, the Diagnostic Field shows an error “54h”.
Why can't I rewrite the register?
Am I doing something wrong?
Please advise.
Below is the data monitor screen.
unlock_st1 : 0 0x55
unlock_st1 : 1 0xa
unlock_st1 : 2 0x40
unlock_st1 : 3 0x69
unlock_st1 : 4 0x4c
unlock_st2 : 0 0x55
unlock_st2 : 1 0xa
unlock_st2 : 2 0x40
unlock_st2 : 3 0x68
unlock_st2 : 4 0x4d
WRcmd : 0 0x55
WRcmd : 1 0x1c
WRcmd : 2 0x32
WRcmd : 3
0xb1 RegRd_Wr: 0x55
RegRd_Wr: 0x9
RegRd_Wr:0x1c
RegRd_Wr:0xda
Reg_Rd:
0x54 Reg_Rd:0x8c
Reg_Rd:
0x1f 01010100
10001100
00011111