PIC18 DataRAM 笔记

文章讨论了微控制器中内存地址空间的组织,特别是16个可能共享低8位地址的寄存器。SFR是芯片寄存器,而GPR是数据RAM。BSR存储目标地址的高4位。在访问数据时,必须确保选择正确的银行。例如,当BSR为0Fh时,向地址F9h写入数据可能会重置程序计数器。文章还提到了程序计数器(PC)在地址0xFF9h处的情况。
摘要由CSDN通过智能技术生成

1.疑似最糟糕的英文技术文档段落

Since up to 16 registers may share the same low-order address, the user must always be careful to ensure that the proper bank is selected before performing a data read or write. For example, writing what should be program data to an 8-bit address of F9h while the BSR is 0Fh will end up resetting the program counter.

1.16(Bytes?) register mapped zone in lowest addr is different from each other in each bank。

 2.the example, if we write anything to 0f:00f9h in data ram, the program counter is reset?

3.who wrote this paragraph?????!!!! 

2.关键信息

12 Bits Address

Most Addr :4096Bytes.

16Bank(Bit4 higher)............256/perBank(0xff...Bit8 lower)

SFR is  chip register itself.

GPR is just Data RAM, it is static, which means it can tranfer infos from bootloader to App, vice vesa?

BSR is storage the most significant bits(4Bits) of the target addr.

MOVFF can hould the entire 12Bits addr of data ram.

SFR only located at F38~FFFh。 the F60~ FFFh is mapped to ACCESS Bank("a"=0 is Access Bank mode;"a"=1  using BSR. the  256bytes accessable data RAM is all GPR, the SFR in higner address is Hiding in this mode).这一段可是未明言For exmaple的事,可以推理的是,此时"a"=0,  BSR 仍然有用。在此时。

3.回顾最初的问题

1.low-order address has 8bits. equal to low bytes of data ram addr.

2.16 registers may share the  same address. the register is data ram byte itself, can be GPR, can be SFR.

3. BSR is important.(if you jump from one app to another).

4.the example,  that program conter register is PC register, which abs or full addr is 0xff9h.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

子正

thanks, bro...

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值