• AVR Freaks

LATB4 not defined in header

Author
rrubiocastil
New Member
  • Total Posts : 7
  • Reward points : 0
  • Joined: 2019/09/26 18:50:39
  • Location: 0
  • Status: offline
2019/11/08 19:20:53 (permalink)
0

LATB4 not defined in header

In p24FJ128GA204.h (a read only file) there is no definition for LATB4.
 
It says:
 
#define LATB LATB
extern volatile uint16_t  LATB __attribute__((__sfr__));
typedef struct tagLATBBITS {
  uint16_t LATB0:1;
  uint16_t LATB1:1;
  uint16_t LATB2:1;
  uint16_t LATB3:1;
  uint16_t :1;
  uint16_t LATB5:1;
  uint16_t LATB6:1;
  uint16_t LATB7:1;
  uint16_t LATB8:1;
  uint16_t LATB9:1;
  uint16_t LATB10:1;
  uint16_t LATB11:1;
  uint16_t LATB12:1;
  uint16_t LATB13:1;
  uint16_t LATB14:1;
  uint16_t LATB15:1;
} LATBBITS;
 
 
Is it an error (I think it is) or there is a reason for it?
 
 
 
#1

2 Replies Related Threads

    jtemples
    عُضْوٌ جَدِيد
    • Total Posts : 11395
    • Reward points : 0
    • Joined: 2004/02/13 12:31:19
    • Location: Southern California
    • Status: offline
    Re: LATB4 not defined in header 2019/11/08 19:28:38 (permalink)
    +2 (2)
    If you take a glance at the data sheet, you'll see RB4 is input only, thus has no need for a LAT bit.
    post edited by jtemples - 2019/11/08 23:08:57
    #2
    rrubiocastil
    New Member
    • Total Posts : 7
    • Reward points : 0
    • Joined: 2019/09/26 18:50:39
    • Location: 0
    • Status: offline
    Re: LATB4 not defined in header 2019/11/08 20:14:53 (permalink)
    0
    oh, thank you!
    #3
    Jump to:
    © 2019 APG vNext Commercial Version 4.5