/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 *   
 
 *   C o p y r i g h t   [ 2 0 2 0 - 2 0 2 1 ]   R e n e s a s   E l e c t r o n i c s   C o r p o r a t i o n   a n d / o r   i t s   a f f i l i a t e s .     A l l   R i g h t s   R e s e r v e d . 
 
 * 
 
 *   T h i s   s o f t w a r e   i s   s u p p l i e d   b y   R e n e s a s   E l e c t r o n i c s   A m e r i c a   I n c .   a n d   m a y   o n l y   b e   u s e d   w i t h   p r o d u c t s   o f   R e n e s a s   E l e c t r o n i c s   C o r p . 
 
 *   a n d   i t s   a f f i l i a t e s   (  R e n e s a s  ) .     N o   o t h e r   u s e s   a r e   a u t h o r i z e d .     T h i s   s o f t w a r e   i s   p r o t e c t e d   u n d e r   a l l   a p p l i c a b l e   l a w s ,   
 
 *   i n c l u d i n g   c o p y r i g h t   l a w s . 
 
 *   R e n e s a s   r e s e r v e s   t h e   r i g h t   t o   c h a n g e   o r   d i s c o n t i n u e   t h i s   s o f t w a r e . 
 
 *   T H E   S O F T W A R E   I S   D E L I V E R E D   T O   Y O U    A S   I S ,    A N D   R E N E S A S   M A K E S   N O   R E P R E S E N T A T I O N S   O R   W A R R A N T I E S ,   A N D   T O   T H E   F U L L E S T   E X T E N T   
 
 *   P E R M I S S I B L E   U N D E R   A P P L I C A B L E   L A W , D I S C L A I M S   A L L   W A R R A N T I E S ,   W H E T H E R   E X P L I C I T L Y   O R   I M P L I C I T L Y ,   I N C L U D I N G   W A R R A N T I E S   O F   
 
 *   M E R C H A N T A B I L I T Y ,   F I T N E S S   F O R   A   P A R T I C U L A R   P U R P O S E ,   A N D   N O N I N F R I N G E M E N T ,   W I T H   R E S P E C T   T O   T H E   S O F T W A R E .     T O   T H E   M A X I M U M   
 
 *   E X T E N T   P E R M I T T E D   B Y   L A W ,   I N   N O   E V E N T   W I L L   R E N E S A S   B E   L I A B L E   T O   Y O U   I N   C O N N E C T I O N   W I T H   T H E   S O F T W A R E   ( O R   A N Y   P E R S O N   
 
 *   O R   E N T I T Y   C L A I M I N G   R I G H T S   D E R I V E D   F R O M   Y O U )   F O R   A N Y   L O S S ,   D A M A G E S ,   O R   C L A I M S   W H A T S O E V E R ,   I N C L U D I N G ,   W I T H O U T   L I M I T A T I O N ,   
 
 *   A N Y   D I R E C T ,   C O N S E Q U E N T I A L ,   S P E C I A L ,   I N D I R E C T ,   P U N I T I V E ,   O R   I N C I D E N T A L   D A M A G E S ; 
 
 *   A N Y   L O S T   P R O F I T S ,   O T H E R   E C O N O M I C   D A M A G E ,   P R O P E R T Y   D A M A G E ,   O R   P E R S O N A L   I N J U R Y ;   A N D   E V E N   I F   R E N E S A S   H A S   B E E N   A D V I S E D   O F   
 
 *   T H E   P O S S I B I L I T Y   O F   S U C H   L O S S , D A M A G E S ,   C L A I M S   O R   C O S T S . 
 
 *   
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * / 
 
 
 
 1 .   P r o j e c t   O v e r v i e w : 
 
           T h e   e x a m p l e   p r o j e c t   d e m o n s t r a t e s   t h e   t y p i c a l   u s e   o f   t h e   s a m p l e   l i b r a r y   f u n c t i o n s   a n d   t h e   f e a t u r e s   o f   R A A 4 8 9 2 2 0   B a t t e r y   F r o n t   E n d .   
 
 	   I t   c o m p r i s e s   a   s p e c i a l i z e d - t o - t h e - d e v i c e   l i b r a r y ,   a   d e m o   b a t t e r y   m a n a g e m e n t   a p p l i c a t i o n   a n d   a   u s e r   i n t e r f a c e .   T h e   c o m m a n d s   a r e 
 
 	   s e n t   a n d   i n f o r m a t i o n   i s   o b t a i n e d   u s i n g   a   t e r m i n a l   s o f t w a r e   ( T e r a   T e r m )   a n d   a   s e r i a l   c o n n e c t i o n .   T h e   s a m p l e   p r o j e c t   w o r k s   d i r e c t l y 
 
 	   w i t h   R T K A P M O D D O N G L E E V 1 Z   a n d   R T K A 4 8 9 2 2 0 D E 0 0 0 0 B U . 
 
 
 
 2 .   H a r d w a r e   s e t t i n g s   f o r   t h e   p r o j e c t : 
 
 	 
 
 	 H a r d w a r e   s e t t i n g s   f o r   R T K A P M O D D O N G L E E V 1 Z : 
 
 	 -   E n s u r e   t h a t   j u m p e r s   a r e   o n   t h e   f o l l o w i n g   p o s i t i o n s :   J B 1 ( O P E N ) ,   J B 2 ( 1 , 2 ) ,   J 3 ( C L O S E D ) ,   J B 3 ( 2 , 3 ) ,   J 4 ( C L O S E D ) ,   J B 4 ( O P E N ) ,   J 1 4 ( O P E N ) , 
 
 	 J B 7 ( 1 , 2 ) ,   J B 8 ( 2 , 3 ) ,   J B 9 ( O P E N ) ,   J B 1 0 ( 1 , 2 ) ,   J 1 4 ( O P E N ) ! 
 
 	 -   U s e   R e n e s a s   E 2   E m u l a t o r   o r   E 2   E m u l a t o r   L i t e ,   c o n n e c t e d   t o   J 1 1   t o   d o w n l o a d   a n d   d e b u g   t h e   s o f t w a r e ! 
 
         
 
         H a r d w a r e   s e t t i n g s   f o r   R T K A 4 8 9 2 2 0 D E 0 0 0 0 B U : 
 
 	 -   E n s u r e   t h a t   t h e r e   i s   a   j u m p e r   o n   J 1 ! 
 
 	 -   M a k e   s u r e   t h a t   t h e r e   a r e   n o   j u m p e r s   o n   J P 1 ,   J 1 0 ,   J 1 1   o r   J 1 2 . 
 
 	 
 
 	 H a r d w a r e   s e t t i n g s   f o r   B M S _ P S _ C E L L 1 0 Z : 
 
 	 -   E n s u r e   t h a t   t h e r e   a r e   j u m p e r s   o n   J 1 ! 
 
 	 -   C o n n e c t   t h e   v o l t a g e   s o u r c e   b e t w e e n   t e r m i n a l s   1 0 C E L L   a n d   G N D . 
 
 
 
 N O T E :   
 
         T h e   s a m p l e   c o d e   i s   i n t e n d e d   f o r   d e m o n s t r a t i o n   p u r p o s e s   a n d   t o   s p e e d   u p   t h e   d e s i g n   o f   h i g h   v o l t a g e   b a t t e r y   m a n a g e m e n t   s y s t e m s . 
 
         F o r   m o r e   i n f o r m a t i o n ,   p l e a s e ,   r e f e r   t o   t h e   q u i c k   s t a r t   g u i d e ,   a v a i l a b l e   o n   t h e   p r o d u c t   p a g e ! 
 
 	 