本帖最后由 79876793 于 2021-12-11 10:47 编辑
这个软件生成在宏定义中从LCDSEG40开始到LCDSEG51在地址是错误的,因为这个找了一天的原因,最后经过修改地址才能正常显示了,附上修改后的宏定义,供同学们别再像我一样踩坑,单片机用的是HC32L176PATA,4COM 1/4 duty,1/3 bias
#define LCDSEG34 *((volatile uint8_t *)(LCD_BASEADDR+40))
#define LCDSEG35 *((volatile uint8_t *)(LCD_BASEADDR+44))
#define LCDSEG36 *((volatile uint8_t *)(LCD_BASEADDR+48))
#define LCDSEG37 *((volatile uint8_t *)(LCD_BASEADDR+52))
#define LCDSEG38 *((volatile uint8_t *)(LCD_BASEADDR+56))
#define LCDSEG39 *((volatile uint8_t *)(LCD_BASEADDR+60))
#define LCDSEG40 *((volatile uint8_t *)(LCD_BASEADDR+33))///
#define LCDSEG41 *((volatile uint8_t *)(LCD_BASEADDR+37))
#define LCDSEG42 *((volatile uint8_t *)(LCD_BASEADDR+41))
#define LCDSEG43 *((volatile uint8_t *)(LCD_BASEADDR+45))
#define LCDSEG44 *((volatile uint8_t *)(LCD_BASEADDR+49))
#define LCDSEG45 *((volatile uint8_t *)(LCD_BASEADDR+53))
#define LCDSEG46 *((volatile uint8_t *)(LCD_BASEADDR+57))
#define LCDSEG47 *((volatile uint8_t *)(LCD_BASEADDR+61))
#define LCDSEG48 *((volatile uint8_t *)(LCD_BASEADDR+34))
#define LCDSEG49 *((volatile uint8_t *)(LCD_BASEADDR+38))///
#define LCDSEG50 *((volatile uint8_t *)(LCD_BASEADDR+42))
#define LCDSEG51 *((volatile uint8_t *)(LCD_BASEADDR+46)) |