Hi Where can i find the initialization addrss of each port in datasheet?
Thanks
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.
Hi Where can i find the initialization addrss of each port in datasheet?
Thanks
Hi Nabila,
The Clock Enable address for all peripherals is in System Control Module (0x400FE000). They are kept together as RCGCMODULE (at offset 0x600 onwards til 0x6FC).
So any peripheral for which you need the clock initialization would be from 0x400FE600 to 0x400FE6FC
Regards
Amit
Hi What would be the value of the following?
#define SYSCTL_RCGC2_GPIOE ?????
Also how can i initiate the lock register for port E
#define GPIO_PORTE_LOCK_R (*((volatile unsigned long *)0x??????))
Thanks
Nabila
Hello Nabila,
The value of the define for SYSCTL_RCGC2_GPIOE would be there in the hw_sysctl.h
Please note that on Port E the lock can be initiated by writing any other value other than 0x4C4F434B. However it has no effect as the GPIO Commit Register for all other Port-Pin (except JTAG and NMI) are hardwired to 1.
Regards
Amit