MikroElektronika PIC Microcontrollers PIC16 User Manual Page 140

  • Download
  • Add to my manuals
  • Print
  • Page
    / 172
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 139
mikroBASIC
- Basic Compiler for Microchip PIC microcontrollers
MikroElektronika:
Development
tools
-
Books
-
Compilers
mikroBASIC
making it simple...
135
page
sub procedure CF_INIT_PORT(dim byref CtrlPort as byte, dim byref DataPort
as byte)
None.
CtrlPort is control port, DataPort is data port to which CF is attached.
Initializes ports appropriately.
sub function CF_DETECT(dim byref CtrlPort as byte) as byte
CtrlPort must be initialized (call CF_INIT_PORT first).
Check for presence of CF.
Returns TRUE if CF is present, otherwise returns FALSE.
sub procedure CF_WRITE_INIT(dim byref CtrlPort as byte, dim byref DataPort
as byte, dim Adr as longint, dim SectCnt as byte)
Ports must be initialized.
CtrlPort - control port , DataPort - data port , Adr - specifies sector address from
where data will be written, SectCnt - parameter is total number of sectors prepared
for write.
Initializes CF card for write operation.
CF_INIT_PORT
Prototype:
Parameters:
Effects:
Precondition:
CF_DETECT
Prototype:
Effects:
Output:
Precondition:
CF_WRITE_INIT
Prototype:
Parameters:
Effects:
Precondition:
Page view 139
1 2 ... 135 136 137 138 139 140 141 142 143 144 145 ... 171 172

Comments to this Manuals

No comments