EasyManua.ls Logo

Cypress FM4 Series - Page 280

Cypress FM4 Series
1102 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
CHAPTER 7-2: VBAT Domain(A)
280 FM4 Peripheral Manual, Doc. No. 002-04856 Rev. *E
When using the VBAT I/O as a general-purpose I/O output:
Setting procedure example
The following is a setting example of using P46, P47, P48 and P49 all as general-purpose I/O outputs.
(1) Initiate the VBAT domain (see Figure 2-6).
(2) Set the general-purpose IO port to use it as the GPIO pin.
(3) Set the port output direction to the output direction.
(4) Set the port output data register.
(5) Set the port pseudo open drain register (only P48 and P49 can be set).
(6) Transfer the setting value to the VBAT domain.
(7) Wait until the transfer is completed.
(1) Initialized VBAT Domain
(3) Write "00_0000" to VBPFR[5:0]
(4) Write "1111" to VBDDR[3:0]
(5) Write "Data" to VBDOR[3:0]
(7) Write "1" to WTCR20[5]
END
(6) Write "Data" to VBPZR[1:0]
(2) WTCR10[7] == 0
Yes
No
(8) WTCR10[7] == 0
Yes
No

Table of Contents

Related product manuals