Cypress MicroSystems Programmable System on Chip
(PSoC™) microcontroller provides highly flexible I/O with
every pin having configurable drive modes, interrupts and
global routing connections.
Assembly vs. C
Efficient software is vital for embedded system design,
especially with respect to I/O routines. PSoC MCU I/O
ports are highly configurable, and directly accessible by
firmware bit operations in PSoC Designer. This provides
maximum flexibility for programmers. However, it can
require code that is difficult to read
Consider this common example: A hardware engineer
wants to clear bit 6 of I/O port 0 (P0[6])。 With a PSoC
microcontroller, they would write the following assembly
code:
声明:本文内容及配图由入驻作者撰写或者入驻合作网站授权转载。文章观点仅代表作者本人,不代表电子发烧友网立场。文章及其配图仅供工程师学习之用,如有内容侵权或者其他违规问题,请联系本站处理。 举报投诉
全部0条评论
快来发表一下你的评论吧 !