Quantcast

230X EEPROM Battery Charge Detect bits

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

230X EEPROM Battery Charge Detect bits

truth

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 [hidden email]  

FT_PROG-BCD-none.jpg (255K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: 230X EEPROM Battery Charge Detect bits

Thomas Jarosch
Hi Kevin,

On Wednesday, 6. May 2015 06:57:00 [hidden email] wrote:

> ...
> -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.

thanks for those EEPROM dumps. Features are added to libftdi on a
as-needed basis by the developers using it.

If you need to configure those bits, feel free to implement the flags and send
a patch. I'll then review it. There is already some stuff at offset 0x00 f.e.
for the 2232H type chips. For TYPE_230X, we currently program "0x80"
as the default value.

If you don't need this right now, those dumps are still
useful to someone willing to implement it.

Cheers,
Thomas


--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to [hidden email]  

Loading...