TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

A Guide to Pic Microcontroller Paging

32 pointsby Jetroidalmost 5 years ago

2 comments

lmilcinalmost 5 years ago
Can somebody explain why anybody would want to put up with PIC in 2020 when ARMs are so cheap and energy efficient and development tools got to a point where you get working toolchain with no time or money expense (for example with stm32cubeide and st-link)?
评论 #23513546 未加载
评论 #23513221 未加载
评论 #23513727 未加载
评论 #23512730 未加载
评论 #23514518 未加载
评论 #23512700 未加载
评论 #23514807 未加载
评论 #23514512 未加载
评论 #23513334 未加载
indigo945almost 5 years ago
<p><pre><code> Technically, the second block of code is not 100% equivalent. Why? Well, it uses more instructions (so more memory and also takes longer to execute) but it also sets ALL bits of the Program Counter, not just the ones that a goto or call can. We could use the second block of code to goto to a correct page, but it would be annoying to use in practice because it would mangle the W register. </code></pre> Does the code even work at all? I don&#x27;t know anything about PIC microcontrollers, but I would have expected that writing to PCLACH would cause a jump immediately, meaning that the write to the low bits in PCL would never even happen.
评论 #23513979 未加载
评论 #23518920 未加载
评论 #23513658 未加载