- Page 1 and 2: for Zilog Z180 microprocessors Vers
- Page 3 and 4: TABLE OF CONTENTS About This Manual
- Page 5 and 6: AASCDUM.LIB .......................
- Page 7 and 8: LIB\DEMO ..........................
- Page 9 and 10: ABOUT THIS MANUAL Z-World customers
- Page 11 and 12: Icons Table 2 displays and defines
- Page 13 and 14: CHAPTER 1: GENERAL SUPPORT LIBRARIE
- Page 15: • void outport( unsigned port, un
- Page 19 and 20: • void CoPause( CoData *cd ) CoPa
- Page 21 and 22: • float asin( float x ) Computes
- Page 23 and 24: • float pow10( float x ) Returns
- Page 25 and 26: The %8.2f in the format tells the f
- Page 27 and 28: The function returns the exponent (
- Page 29 and 30: • int atol( char *sptr ) Returns
- Page 31 and 32: • long strtol( char *s, char **ta
- Page 33 and 34: • unsigned bfree( void *lo, void
- Page 35 and 36: • int sysIsFlash( void ) Returns
- Page 37 and 38: • unsigned xstrlen( unsigned long
- Page 39 and 40: CHAPTER 2: MULTITASKING LIBRARIES T
- Page 41 and 42: • void run_timer( void ) This fun
- Page 43 and 44: VDRIVER.LIB These are the virtual d
- Page 45 and 46: CHAPTER 3: AASC LIBRARIES The AASC.
- Page 47 and 48: Choose one macro from each column t
- Page 49 and 50: • unsigned aascWriteChar(CHANNEL
- Page 51 and 52: • unsigned aascWriteBufLeft(CHANN
- Page 53 and 54: • void aascXMRdInitLog(unsigned W
- Page 55 and 56: PackNum is the sequence number of t
- Page 57 and 58: • unsigned aascWrCallBackLg(unsig
- Page 59 and 60: CHAPTER 4: OTHER COMMUNICATION DRIV
- Page 61 and 62: [slave id] [len] [ ] [ ]...[ ] [CRC
- Page 63 and 64: • void doreti( void ) Call this r
- Page 65 and 66: Command 0x44 (clear) clears the fir
- Page 67 and 68:
• void Dreset_scatbuf( void ) Res
- Page 69 and 70:
RETURN VALUE: 0 if the transmit buf
- Page 71 and 72:
• void Dscbsend_prompt( void ) Pl
- Page 73 and 74:
it 2 0 = 7 data bits 1 = 8 data bit
- Page 75 and 76:
• int s0modemstat( void ) Returns
- Page 77 and 78:
• void Dkill_s0( void ) Disables
- Page 79 and 80:
• int z0modemset( void ) Returns
- Page 81 and 82:
• void Drestart_z0modem( void ) R
- Page 83 and 84:
CHAPTER 5: MODBUS SLAVE LIBRARIES M
- Page 85 and 86:
Step 3: Initialize the Modbus Seria
- Page 87 and 88:
The serial drivers provided in MSZ.
- Page 89 and 90:
Modbus Slave Command Handlers The l
- Page 91 and 92:
• int msWrite(unsigned Reg, unsig
- Page 93 and 94:
MSZ.LIB uses a special 32-bit high
- Page 95 and 96:
CHAPTER 6: MODBUS MASTER LIBRARIES
- Page 97 and 98:
Step 3: Initialize the Modbus Seria
- Page 99 and 100:
Baud is the serial communication ra
- Page 101 and 102:
Coils is a pointer to the memory wh
- Page 103 and 104:
Regs is a pointer to the memory whe
- Page 105 and 106:
Addr is the address (ID) of the Mod
- Page 107 and 108:
Reg is the number of the register t
- Page 109 and 110:
Prior to the actual attempt to tran
- Page 111 and 112:
#define MM_GARBAGE (-7) // Garbage
- Page 113 and 114:
The attempt to read unsupported reg
- Page 115 and 116:
CHAPTER 7: GRAPHICS ENGINE SUPPORT
- Page 117 and 118:
• int GEInit(int Port, long BaudR
- Page 119 and 120:
• int GESendLong(int Port, long *
- Page 121 and 122:
• int GELoadBitMapWF(int Port, in
- Page 123 and 124:
• int GEEnableCellsWF(int Port, i
- Page 125 and 126:
• int GEPutPixelWF(int Port, int
- Page 127 and 128:
• int GEPutPolygonWF(int Port, in
- Page 129 and 130:
• int GEStoreRegion(int Port, int
- Page 131 and 132:
XXcoord is the horizontal coordinat
- Page 133 and 134:
• int GEBeepWF(int Port, int Dura
- Page 135 and 136:
• int GEDisplayButton(int Port, i
- Page 137 and 138:
• int GELinkBtnToMac(int Port, in
- Page 139 and 140:
• int GESetTod(int Port, struct t
- Page 141 and 142:
MacroID is the ID number of the mac
- Page 143 and 144:
• int GEDisableBtnAreaWF(int Port
- Page 145 and 146:
CHAPTER 8: OTHER LIBRARIES The libr
- Page 147 and 148:
The function returns an integer rep
- Page 149 and 150:
• void _5key_setmenu( char *menu,
- Page 151 and 152:
• void _5key_setalarm ( int(*func
- Page 153 and 154:
CPLC.LIB These functions support th
- Page 155 and 156:
• void write12data( int address,
- Page 157 and 158:
• long mktime( struct tm *timeptr
- Page 159 and 160:
• void set24adr( long address ) S
- Page 161 and 162:
• void sleep( void ) Puts the con
- Page 163 and 164:
DMA0 will generate an interrupt at
- Page 165 and 166:
DMA1 will generate an interrupt at
- Page 167 and 168:
IOEXPAND.LIB These are support func
- Page 169 and 170:
The function returns 0 if initializ
- Page 171 and 172:
• int lk_kxinit( void ) Initializ
- Page 173 and 174:
esc bEnables blinking cursor mode e
- Page 175 and 176:
• int lk_lecho( void ) Pulls char
- Page 177 and 178:
• int Text_Addr( int col, int row
- Page 179 and 180:
• int lc_putc( char x ) Decodes c
- Page 181 and 182:
The bus must interface to the PIO p
- Page 183 and 184:
• void Latch_DAC1( void ) Moves t
- Page 185 and 186:
• int PBus4_Read1( void ) Reads 4
- Page 187 and 188:
• void Set_DAC1( int val ) Sets D
- Page 189 and 190:
APPENDIX A: DYNAMIC C LIBRARIES The
- Page 191 and 192:
AASCUART.LIB For BL1200 series, BL1
- Page 193 and 194:
EPSONRTC.LIB Epson 72421 RTC existe
- Page 195 and 196:
LP_BL145.LIB For BL1400 series and
- Page 197 and 198:
SCC232.LIB For BL1300 series contro
- Page 199 and 200:
V256X64.LIB For BL1100 series, BL12
- Page 201 and 202:
EZIOMGPL.LIB For BL1400 series and
- Page 203 and 204:
8X10L.LIB Landscape mode xdata font
- Page 205 and 206:
APPENDIX B: LIBRARY LISTS FOR Z-WOR
- Page 207 and 208:
BL1600 BL16XX.LIB, CPLC.LIB, EZIOCM
- Page 209 and 210:
APPENDIX C: USING AASC LIBRARIES Th
- Page 211 and 212:
AASC support libraries implement cu
- Page 213 and 214:
Sample Program The following sample
- Page 215 and 216:
XModem Transfer The AASC libraries
- Page 217 and 218:
XM_SEND.C #use vdriver.lib #use aas
- Page 219 and 220:
INDEX Symbols 96IO.LIB ............
- Page 221 and 222:
BL1600 ... 191, 192, 193, 194, 196,
- Page 223 and 224:
Dynamic C list of function librarie
- Page 225 and 226:
GELinkCellToMac ..................
- Page 227 and 228:
Latch_DAC2 .................... 183
- Page 229 and 230:
modem commands deciphering ........
- Page 231 and 232:
R rad .............................
- Page 233 and 234:
stepper motor control .............
- Page 235:
Z-World, Inc. 2900 Spafford Street