查看: 2604|回复: 1

[原创] FGPIO和GPIO寄存器的使用

[复制链接]

该用户从未签到

2

主题

4

帖子

0

新手上路

Rank: 1

积分
39
最后登录
1970-1-1
发表于 2016-5-5 13:44:49 | 显示全部楼层 |阅读模式
本帖最后由 小智MM 于 2016-5-5 16:08 编辑

我是用的是KL02处理器.

手册中既然说明了FGPIO是GPIO寄存器的别名,并且有单周期访问的特性,那么,是不是GPIO寄存器就没访问的必要,可以全部都访问FGPIO上,他们寄存器的表达是完全一样的.

The GPIO registers are also aliased to the IOPORT interface on the Cortex-M0+ from address 0xF800_0000. Accesses via the IOPORT interface occur in parallel with any instruction fetches and will therefore complete in a single cycle. This aliased Fast GPIO memory map is called FGPIO.
Any read or write access to the FGPIO memory space that is outside the valid memory map results in a bus error. All register accesses complete with zero wait states, except error accesses which complete with one wait state.

回复

使用道具 举报

该用户从未签到

712

主题

6371

帖子

0

超级版主

Rank: 8Rank: 8

积分
24871
最后登录
2025-7-18
发表于 2016-5-5 16:29:32 | 显示全部楼层
从控制GPIO的输入,输出角度看,你可以这样理解
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 注册/登录

本版积分规则

关闭

站长推荐上一条 /3 下一条

Archiver|手机版|小黑屋|恩智浦技术社区

GMT+8, 2025-7-19 15:42 , Processed in 0.084490 second(s), 20 queries , MemCache On.

Powered by Discuz! X3.4

Copyright © 2001-2024, Tencent Cloud.

快速回复 返回顶部 返回列表