📄 iop.lst
字号:
210 F160 IOP_CLOCK equ 121500000
211 [03] .endif
212 [02] .endif
213 [01] .endif
214 [00] .endif
215
216 [01] .if SPHE8200
Mon Jun 04 13:40:38 2007 Page 5
217 [02] .ifnz IOP_CLK_114_75
218 IOP_CLOCK equ 114750000
219 [02] .else
220 IOP_CLOCK equ 121500000
221 [01] .endif
222 [00] .endif
223
224
225 [01] .ifnz (IR_M3004 + IR_ORITRON)
226 IR_SCAN_TIME equ (IOP_CLOCK*80/1000000)
227 [01] .else
228 [02] .ifnz (IR_ORITRON_5116)
229 IR_SCAN_TIME equ (IOP_CLOCK*40/1000000)
230 [02] .else
231 3528 IR_SCAN_TIME equ (IOP_CLOCK*112/1000000)
232 [01] .endif
233 [00] .endif
234
235 107A UART_TIME equ (IOP_CLOCK*3472/100000000)
236
237 [01] .ifnz PCA9564
238 PCA9564_SCAN_TIME equ (IOP_CLOCK*60/1000000)
239 [00] .endif
240
241 ;;64 bit port; Read: Input data;
242 ;; Write: update output data
243 0000 GPIO_PORT0 equ $00
244 0001 GPIO_PORT1 equ $01
245 0002 GPIO_PORT2 equ $02
246 0003 GPIO_PORT3 equ $03
247 0004 GPIO_PORT4 equ $04
248 0005 GPIO_PORT5 equ $05
249 0006 GPIO_PORT6 equ $06
250 0007 GPIO_PORT7 equ $07
251
252 [01] .if SPHE8202
253 ;;Second 64 bit port; Read: Input data;
254 ;; Write: update output data
255 0028 GPIO_PORT8 equ $28
256 0029 GPIO_PORT9 equ $29
257 002A GPIO_PORT10 equ $2A
258 002B GPIO_PORT11 equ $2B
259 002C GPIO_PORT12 equ $2C
260 002D GPIO_PORT13 equ $2D
261 002E GPIO_PORT14 equ $2E
262 002F GPIO_PORT15 equ $2F
263 [00] .endif
264
265 ;;64 bit port for each port I/O define
266 ;;gpio_oe[] config. 0 = input / 1 = output
267
268 0008 GPIO_IO0_CFG equ $08
269 0009 GPIO_IO1_CFG equ $09
270 000A GPIO_IO2_CFG equ $0A
271 000B GPIO_IO3_CFG equ $0B
272 000C GPIO_IO4_CFG equ $0C
273 000D GPIO_IO5_CFG equ $0D
Mon Jun 04 13:40:38 2007 Page 6
274 000E GPIO_IO6_CFG equ $0E
275 000F GPIO_IO7_CFG equ $0F
276
277 [01] .if SPHE8202
278 ;;Second 64 bit port for each port I/O define
279 ;;gpio_oe[] config. 0 = input / 1 = output
280
281 0030 GPIO_IO8_CFG equ $30
282 0031 GPIO_IO9_CFG equ $31
283 0032 GPIO_IO10_CFG equ $32
284 0033 GPIO_IO11_CFG equ $33
285 0034 GPIO_IO12_CFG equ $34
286 0035 GPIO_IO13_CFG equ $35
287 0036 GPIO_IO14_CFG equ $36
288 0037 GPIO_IO15_CFG equ $37
289 [00] .endif
290
291 ;;RISC and IOP data exchanging area
292 0010 IOP_DATA0_L equ $10
293 0011 IOP_DATA0_H equ $11
294 0012 IOP_DATA1_L equ $12
295 0013 IOP_DATA1_H equ $13
296 0014 IOP_DATA2_L equ $14
297 0015 IOP_DATA2_H equ $15
298 0016 IOP_DATA3_L equ $16
299 0017 IOP_DATA3_H equ $17
300 0018 IOP_DATA4_L equ $18
301 0019 IOP_DATA4_H equ $19
302 001A IOP_DATA5_L equ $1A
303 001B IOP_DATA5_H equ $1B
304 001C IOP_DATA6_L equ $1C
305 001D IOP_DATA6_H equ $1D
306 001E IOP_DATA7_L equ $1E
307 001F IOP_DATA7_H equ $1F
308
309 ;;timer and interrupt
310 0020 IntMask equ $20
311 0021 IntFlag equ $21
312 0022 TimerA_Lo equ $22
313 0023 TimerA_Hi equ $23
314 0024 TimerB_Lo equ $24
315 0025 TimerB_Hi equ $25
316
317 ;;64 bit port for gpio_out[] retriving. (read only)
318
319 0030 GPIO_PORT0_OUT equ $30
320 0031 GPIO_PORT1_OUT equ $31
321 0032 GPIO_PORT2_OUT equ $32
322 0033 GPIO_PORT3_OUT equ $33
323 0034 GPIO_PORT4_OUT equ $34
324 0035 GPIO_PORT5_OUT equ $35
325 0036 GPIO_PORT6_OUT equ $36
326 0037 GPIO_PORT7_OUT equ $37
327
328 ;; Reset RISC area
329 003E Reset_RISC_L equ $3E
330 003F Reset_RISC_H equ $3F
Mon Jun 04 13:40:38 2007 Page 7
331
332
333 0001 INT_TIMER_B equ %00000001
334 0002 INT_TIMER_A equ %00000010
335
336 0000 INT_TIMER_B_bit equ 0
337 0001 INT_TIMER_A_bit equ 1
338
339
340 ;;*********************************
341 ;;IOP function select
342 ;;*********************************
343 00F0 FUN_MASK equ %11110000
344 00C0 FUN_MAIN_MASK equ %11000000
345 0030 FUN_SUB_MASK equ %00110000
346
347 0000 FUN_FREE equ %00000000
348 0240
349 0010 FUN_VFD_REQ_R equ %00010000
350 0020 FUN_VFD_REQ_W equ %00100000
351
352 0040 FUN_CUSTID_SET equ %01000000
353 0050 FUN_CUSTID_READ equ %01010000
354
355 0060 FUN_UART_TXD equ %01100000
356
357 0070 FUN_I2C_WRITE equ %01110000
358 0080 FUN_I2C_READ equ %10000000
359
360 0090 FUN_GPAD_READ equ %10010000
361
362 [01] .ifnz PMP_MCU810_DRIVER
363 FUN_PMP_MCU810 equ %10100000
364 [00] .endif
365
366 ;;*********************************
367 ;;VFD command type
368 ;;*********************************
369 0003 VFD_CMD_MASK equ %00000011
370 0000 VFD_READ equ %00000000
371 0001 VFD_WRITE equ %00000001
372 ;;VFD data size
373
374 0007 VFD_DAT_LN_MASK equ %00000111 ;;low byte
375 000F VFD_FIRST_DATA_ADDR equ %00001111
376 ;;*********************************
377 ;;UART interface
378 ;;*********************************
379 0003 UART_PORT equ GPIO_PORT3
380 000B UART_PORT_CFG equ GPIO_IO3_CFG
381
382 0004 UART_TXD_OUT equ %00000100
383
384 0004 UART_TXD_BIT equ %00000100 ;;gpio 26
385 0008 UART_RXD_BIT equ %00001000 ;;gpio 27
386
387 0002 UART_TXD_bit equ 2
Mon Jun 04 13:40:38 2007 Page 8
388 0003 UART_RXD_bit equ 3
389
390 ;;*********************************
391 ;;VFD port define
392 ;;*********************************
393 [01] .if SPHE8202
394 [02] .ifnz SPHE8202L_128PIN
395 VFD_PORT equ GPIO_PORT1
396 VFD_DATA_PORT equ GPIO_PORT1
397 VFD_PORT_CFG equ GPIO_IO1_CFG
398 VFD_DATA_PORT_CFG equ GPIO_IO1_CFG
399 [02] .else
400 [03] .ifnz SPHE8202R_128PIN
401 0002 VFD_PORT equ GPIO_PORT2
402 0002 VFD_DATA_PORT equ GPIO_PORT2
403 000A VFD_PORT_CFG equ GPIO_IO2_CFG
404 000A VFD_DATA_PORT_CFG equ GPIO_IO2_CFG
405 [03] .else
406 VFD_PORT equ GPIO_PORT2
407 VFD_DATA_PORT equ GPIO_PORT2
408 VFD_PORT_CFG equ GPIO_IO2_CFG
409 VFD_DATA_PORT_CFG equ GPIO_IO2_CFG
410 [02] .endif
411 [01] .endif
412 [00] .endif
413
414 [01] .if SPHE8200
415 VFD_PORT equ GPIO_PORT6
416 VFD_PORT_CFG equ GPIO_IO6_CFG
417 VFD_DATA_PORT equ GPIO_PORT7
418 VFD_DATA_IN_PORT equ GPIO_PORT0
419 VFD_DATA_PORT_CFG equ GPIO_IO7_CFG
420 VFD_DATA_IN_PORT_CFG equ GPIO_IO0_CFG
421 [00] .endif
422
423 [01] .if SPHE8202
424 [02] .ifnz SPHE8202L_128PIN
425 VFD_DATA equ %00010000 ;;gpio 12
426 VFD_STB equ %00001000 ;;gpio 11
427 VFD_CLK equ %00000100 ;;gpio 10
428 [02] .else
429 [03] .ifnz SPHE8202R_128PIN
430 0004 VFD_DATA equ %00000100 ;;gpio 18
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -