关于宏定义HWREG(0x42B87F80) 就可以直接操作给PE0口赋值0或者1 ,然后0x42B87F80怎么算出来的?
按照TM4C123BE6PZ的datasheet中的bit-band公式无法算出这个地址结果?怎么算的?求大神指导!!!!!谢谢
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
关于宏定义HWREG(0x42B87F80) 就可以直接操作给PE0口赋值0或者1 ,然后0x42B87F80怎么算出来的?
按照TM4C123BE6PZ的datasheet中的bit-band公式无法算出这个地址结果?怎么算的?求大神指导!!!!!谢谢
通过bit-band公式我能算到0x42B80000,然后后面的7F80就是算不出来,还参考了以下程序算法
#define HWREGB(x) \
(*((volatile uint8_t *)(x)))
#define HWREGBITW(x, b) \
HWREG(((uint32_t)(x) & 0xF0000000) | 0x02000000 | \
(((uint32_t)(x) & 0x000FFFFF) << 5) | ((b) << 2))
#define HWREGBITH(x, b) \
HWREGH(((uint32_t)(x) & 0xF0000000) | 0x02000000 | \
(((uint32_t)(x) & 0x000FFFFF) << 5) | ((b) << 2))
#define HWREGBITB(x, b) \
HWREGB(((uint32_t)(x) & 0xF0000000) | 0x02000000 | \
(((uint32_t)(x) & 0x000FFFFF) << 5) | ((b) << 2))
但是还是算不出来7F80这个数,是我少算了什么吗?