libftdi Archives

Subject: 230X EEPROM Battery Charge Detect bits

From: truth@xxxxxxxxxxxxxxxx
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Wed, 6 May 2015 06:57:00 -0700 (PDT)

The FT_Prog tool has 3 bits which can be set to configure the Battery Charge Detect feature available with the FT230X. I attached a screen shot of what the FT_Prog tool looks like with respect to these property check boxes. Using the ftdi_get_eeprom_buf() function to obtain and display the contents of the EEPROM, I set each property in FT_Prog and displayed the EEPROM contents. The bits seem to be located in byte 0 of the EEPROM contents. The following is what I found changed in the EEPROM contents when individually setting these properties.

With no options checked in the FT_Prog tool, dumping the contents of the EEPROM shows this:

-no Battery Charge Enable
-no Force Power Enable
-no De-activate Sleep

0x000: 80 00 03 04 15 60 00 10  80 fa 08 00 00 00 a0 10 .....`.. ........
0x010: b0 10 c0 12 00 00 00 00  00 00 0e 04 05 03 00 00 ........ ........
0x020: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 ........ ........
0x030: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 ........ ........
...


- yes Battery Charge Enable
- no Force Power Enable
- no De-activate Sleep

0x000: 81 00 03 04 15 60 00 10  80 fa 08 00 00 00 a0 10 .....`.. ........
0x010: b0 10 c0 12 00 00 00 00  00 00 0e 04 05 03 00 00 ........ ........
0x020: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 ........ ........
0x030: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 ........ ........
...


-no Battery Charge Enable
-yes Force Power Enable
-no De-activate Sleep

0x000: 82 00 03 04 15 60 00 10  80 fa 08 00 00 00 a0 10 .....`.. ........
0x010: b0 10 c0 12 00 00 00 00  00 00 0e 04 05 03 00 00 ........ ........
0x020: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 ........ ........
0x030: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 ........ ........
...


-no Battery Charge Enable
-no Force Power Enable
-yes De-activate Sleep

0x000: 84 00 03 04 15 60 00 10  80 fa 08 00 00 00 a0 10 .....`.. ........
0x010: b0 10 c0 12 00 00 00 00  00 00 0e 04 05 03 00 00 ........ ........
0x020: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 ........ ........
0x030: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 ........ ........
...



Are there any plans to add these properties to the libftdi library? They currently appear to be specific to the FT230X chip.


Kevin



--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Attachment: FT_PROG-BCD-none.jpg
Description: JPEG image

Current Thread