MikroElektronika PIC Microcontrollers PIC16 Datový list Strana 86

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 194
  • Tabulka s obsahem
  • ŘEŠENÍ PROBLÉMŮ
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 85
Programming PIC Microcontrollers in BASIC - mikroElektronika
Prototype
sub procedure CF_WRITE_INIT(dim byref CtrlPort as byte, dim byref DataPort as
byte, dim Adr as longint, dim SectCnt as byte)
Description The procedure initializes CF card for writing. Ports need to be initialized.
Parameters:
CtrlPort - control port,
DataPort - data port,
k - specifies sector address from where data will be written,
SectCnt - parameter is total number of sectors prepared for write.
Example
CF_Write_Init(PORTB, PORTD, 590, 1) ' Initialize write at sector address 590
' of 1 sector (512 bytes)
5.2.5.4 CF_Write_Byte – Writes 1 byte to CF
Prototype
sub procedure CF_WRITE_BYTE(dim byref CtrlPort as byte, dim byref DataPort as
byte, dim BData as byte)
http://www.mikroelektronika.co.yu/english/product/books/picbasicbook/05.htm (44 sur 112)05/11/2004 02:20:52
Zobrazit stránku 85
1 2 ... 81 82 83 84 85 86 87 88 89 90 91 ... 193 194

Komentáře k této Příručce

Žádné komentáře