KCC's Quizzes AQQ306 about a fish stick challenge
1. First the quote of the month: " I am so clever that sometimes I don't understand a single word of what I am saying" - Oscar Wilde
2. New quiz AQQ306 about a fish stick challenge:
Here below is a pseudo fish diagram swimming to the right.
Question
View All
November Monthly Blog Quiz! Read the blog, take the quiz, and you could win a gift card
Ever wonder how EMC limits came to be and why they matter? Dive into the interesting bits of EMC limits and levels, then test your knowledge with EMC: The Interesting Bits Quiz.
Read the blog first: EMC Limits and Levels Explained: Well, the Interesting
View All
MAX17330
Not Recommended for New Designs
The MAX17330 is not recommended for new designs. The replacement part is the MAX17332.
The MAX17330 is a 28μA IQ stand-alone charger, fuel gauge, protector...
Datasheet
MAX17330 on Analog.com
Hi,
I'm trying to enable ship mode of MAX17330. To do this, I've defined a structure as below
typedef struct max17330_reg_tagNPROTCONFIG {
union {
uint16_t valueWord;
struct {
uint16_t DeepShp2En :1;
uint16_t BlockDisCEn :1;
uint16_t FetPFEn :1;
uint16_t nUVRdy :1;
uint16_t OvrdEn :1;
uint16_t DeepShpEn :1;
uint16_t PFEn :1;
uint16_t Reserved :1;
uint16_t PrequalEn :1;
uint16_t ChgTestEn :1;
uint16_t CmOvrdEn :1;
uint16_t SCTest :2;
uint16_t FullEn :1;
uint16_t nChgAutoCtrl :1;
uint16_t ChgWDTEn :1;
};
};
} max17330_reg_nPROTCONFIG_t;
Then:
1. reading the valueWord from address max17330_reg_N_PROT_CONFIG (uint16_t)0x01D7
2. setting ChgWDTEn = true;
3. Writing valueWord back to MAX.
Device does not goes to ship mode.
Can you please tell me what might be wrong?
The nProtCfg.DeepShpEn or DeepShip2En bits help determine which low power mode will be entered.
|
LOW POWER MODE |
nProtCfg.DeepShpEn (BIT D5) |
nProtCfg.DeepShp2En (BIT D0) |
|
Ship |
0 |
0 |
|
DeepShip |
1 |
0 |
|
DeepShip2 |
0 |
1 |
These bits configure which mode is to be entered, but it doesn't actually tell the IC to enter a mode. Once nProtCfg is set configured as desired, then set the Config.SHIP bit (D7) for the IC to enter the selected low power mode
