📄 iop.lst
字号:
431 0002 VFD_STB equ %00000010 ;;gpio 17
432 0001 VFD_CLK equ %00000001 ;;gpio 16
433 [03] .else
434 VFD_DATA equ %10000000 ;;gpio 23
435 VFD_STB equ %01000000 ;;gpio 22
436 VFD_CLK equ %00100000 ;;gpio 21
437 [02] .endif
438 [01] .endif
439 [00] .endif
440
441 [01] .if SPHE8200
442 VFD_DATA equ %00000001 ;;gpio 56
443 VFD_STB equ %10000000 ;;gpio 55
444 VFD_CLK equ %01000000 ;;gpio 54
Mon Jun 04 13:40:38 2007 Page 9
445 [00] .endif
446
447 [01] .ifnz SPHE8202
448 [02] .ifnz SPHE8202L_128PIN
449 VFD_DATA_bit equ 4
450 VFD_STB_bit equ 3
451 VFD_CLK_bit equ 2
452 [02] .else
453 [03] .ifnz SPHE8202R_128PIN
454 0002 VFD_DATA_bit equ 2
455 0001 VFD_STB_bit equ 1
456 0000 VFD_CLK_bit equ 0
457 [03] .else
458 VFD_DATA_bit equ 7
459 VFD_STB_bit equ 6
460 VFD_CLK_bit equ 5
461 [02] .endif
462 [01] .endif
463 [00] .endif
464
465 [01] .if SPHE8200
466 VFD_DATA_bit equ 0
467 VFD_DATA_IN_bit equ 2
468 VFD_STB_bit equ 7
469 VFD_CLK_bit equ 6
470 [00] .endif
471
472 ;;*********************************
473 ;;I2C interface
474 ;;*********************************
475
476 [01] .ifnz OLD_I2C_DEFINE
477
478 I2C_PORT equ GPIO_PORT4
479 I2C_PORT_CFG equ GPIO_IO4_CFG
480
481 I2C_SDA equ %00010000 ;;gpio 36
482 I2C_SCL equ %00001000 ;;gpio 35
483
484 I2C_SDA_bit equ 4 ;;gpio 36
485 I2C_SCL_bit equ 3 ;;gpio 35
486 [00] .endif
487
488 [01] .ifnz PMP_MCU810_DRIVER
489 I2C_SDA_PORT equ GPIO_PORT0
490 I2C_SDA_PORT_CFG equ GPIO_IO0_CFG
491 I2C_SCL_PORT equ GPIO_PORT0
492 I2C_SCL_PORT_CFG equ GPIO_IO0_CFG
493
494 I2C_SDA equ %00100000 ;;gpio 5 pin62
495 I2C_SCL equ %01000000 ;;gpio 6 pin63
496
497 I2C_SDA_bit equ 5 ;;gpio 5 pin62
498 I2C_SCL_bit equ 6 ;;gpio 6 pin63
499 [00] .endif
500
501 [01] .ifnz (SPHE8202_256PIN_NON_SHARE_32bit+SPHE8202_256PIN_SHARE_32bit)
Mon Jun 04 13:40:38 2007 Page 10
502 I2C_PORT equ GPIO_PORT6
503 I2C_PORT_CFG equ GPIO_IO6_CFG
504
505 I2C_SDA equ %00000010 ;;gpio 49
506 I2C_SCL equ %00000001 ;;gpio 48
507
508 I2C_SDA_bit equ 1 ;;gpio 49
509 I2C_SCL_bit equ 0 ;;gpio 48
510 [00] .endif
511
512 0240
513 [01] .if SPHE8202_256PIN_NON_SHARE_16bit
514 I2C_SDA_PORT equ GPIO_PORT12
515 I2C_SDA_PORT_CFG equ GPIO_IO12_CFG
516 I2C_SCL_PORT equ GPIO_PORT11
517 I2C_SCL_PORT_CFG equ GPIO_IO11_CFG
518
519 I2C_SDA equ %00000001 ;;gpio 96
520 I2C_SCL equ %10000000 ;;gpio 95
521
522 I2C_SDA_bit equ 0 ;;gpio 96
523 I2C_SCL_bit equ 7 ;;gpio 95
524 [00] .endif
525
526 [01] .if SPHE8202_216PIN_NON_SHARE
527 I2C_PORT equ GPIO_PORT2
528 I2C_PORT_CFG equ GPIO_IO2_CFG
529
530 I2C_SCL equ %00000010 ;;gpio 17
531 I2C_SDA equ %00000100 ;;gpio 18
532
533 I2C_SCL_bit equ 1 ;;gpio 17
534 I2C_SDA_bit equ 2 ;;gpio 18
535 [00] .endif
536
537 [01] .ifnz SPHE8202L_128PIN
538 I2C_PORT equ GPIO_PORT0
539 I2C_PORT_CFG equ GPIO_IO0_CFG
540
541 I2C_SDA equ %01000000 ;;gpio 6
542 I2C_SCL equ %10000000 ;;gpio 7
543
544 I2C_SDA_bit equ 6 ;;gpio 6
545 I2C_SCL_bit equ 7 ;;gpio 7
546 [00] .endif
547
548 [01] .if SPHE8200
549 I2C_PORT equ GPIO_PORT0
550 I2C_PORT_CFG equ GPIO_IO0_CFG
551
552 I2C_SDA equ %00000010 ;;gpio 1
553 I2C_SCL equ %00000001 ;;gpio 0
554
555 I2C_SDA_bit equ 1 ;;gpio 1
556 I2C_SCL_bit equ 0 ;;gpio 0
557 [00] .endif
558
Mon Jun 04 13:40:38 2007 Page 11
559 0008 I2C_DATA_RDY equ %00001000
560 0010 I2C_DATA_ERR equ %00010000
561 0020 I2C_READ_CONT equ %00100000
562 0040 I2C_WRITE_PAGE equ %01000000
563
564 0003 I2C_DATA_RDY_bit equ 3
565 0004 I2C_DATA_ERR_bit equ 4
566 0005 I2C_READ_CONT_bit equ 5
567 0006 I2C_WRITE_PAGE_bit equ 6
568
569 ;;*******************************************************************
570 ;;Game Pad interface
571 ;;*******************************************************************
572 [01] .if SPHE8202_256PIN_NON_SHARE_16bit
573 ;;rbhung change for 8202 non-share mode(gpio) 04/06/09
574
575 GPAD_PORT_CLK equ GPIO_PORT12 ;;for CLK
576 GPAD_PORT_LATCH equ GPIO_PORT12 ;;for LATCH
577 GPAD_PORT_D0_D1 equ GPIO_PORT12 ;;for D0,D1
578
579 GPAD_PORT_CFG_CLK equ GPIO_IO12_CFG
580 GPAD_PORT_CFG_LATCH equ GPIO_IO12_CFG
581 GPAD_PORT_CFG_D0_D1 equ GPIO_IO12_CFG
582
583 GPAD_CLK equ 3 ;;gpio 99 PIN 232
584 GPAD_LATCH equ 4 ;;gpio 100 PIN 233
585 GPAD_D1 equ 1 ;;gpio 97 PIN 230
586 GPAD_D0 equ 2 ;;gpio 98 PIN 231
587 [00] .endif
588
589 [01] .if SPHE8202_256PIN_NON_SHARE_32bit
590 GPAD_PORT_CLK equ GPIO_PORT12 ;;for CLK
591 GPAD_PORT_LATCH equ GPIO_PORT12 ;;for LATCH
592 GPAD_PORT_D0_D1 equ GPIO_PORT12 ;;for D0,D1
593
594 GPAD_PORT_CFG_CLK equ GPIO_IO12_CFG
595 GPAD_PORT_CFG_LATCH equ GPIO_IO12_CFG
596 GPAD_PORT_CFG_D0_D1 equ GPIO_IO12_CFG
597
598 GPAD_CLK equ 3 ;;gpio 99 PIN 232
599 GPAD_LATCH equ 0 ;;gpio 96 PIN 229
600 GPAD_D1 equ 1 ;;gpio 97 PIN 230
601 GPAD_D0 equ 2 ;;gpio 98 PIN 231
602 [00] .endif
603
604 [01] .if SPHE8202_256PIN_SHARE_32bit
605 ;;rbhung change for 8202 share mode(gpio) 04/06/09
606
607 GPAD_PORT_CLK equ GPIO_PORT11 ;;for CLK
608 GPAD_PORT_LATCH equ GPIO_PORT11 ;;for LATCH
609 GPAD_PORT_D0_D1 equ GPIO_PORT10 ;; for D0,D1
610
611 GPAD_PORT_CFG_CLK equ GPIO_IO11_CFG
612 GPAD_PORT_CFG_LATCH equ GPIO_IO11_CFG
613 GPAD_PORT_CFG_D0_D1 equ GPIO_IO10_CFG
614
615 GPAD_CLK equ 0 ;;gpio 88 PIN 183
Mon Jun 04 13:40:38 2007 Page 12
616 GPAD_LATCH equ 1 ;;gpio 89 PIN 184
617 GPAD_D1 equ 6 ;;gpio 86 PIN 180
618 GPAD_D0 equ 7 ;;gpio 87 PIN 181
619 [00] .endif
620
621 [01] .if SPHE8202_216PIN_NON_SHARE
622
623 GPAD_PORT_CLK equ GPIO_PORT1 ;;for CLK
624 GPAD_PORT_LATCH equ GPIO_PORT1 ;;for LATCH
625 GPAD_PORT_D0_D1 equ GPIO_PORT1 ;;for D0,D1
626
627 GPAD_PORT_CFG_CLK equ GPIO_IO1_CFG
628 GPAD_PORT_CFG_LATCH equ GPIO_IO1_CFG
629 GPAD_PORT_CFG_D0_D1 equ GPIO_IO1_CFG
630
631 GPAD_CLK equ 3 ;;gpio 11 PIN 59
632 GPAD_LATCH equ 4 ;;gpio 12 PIN 61
633 GPAD_D1 equ 6 ;;gpio 14 PIN 63
634 GPAD_D0 equ 5 ;;gpio 13 PIN 62
635 [00] .endif
636
637 [01] .ifnz SPHE8202L_128PIN
638 ;;wurh note:only for 8202L 16M SDRAM GAME PAD,64M SDRAM need change some port
639 GPAD_PORT_CLK equ GPIO_PORT3 ;;for CLK
640 GPAD_PORT_LATCH equ GPIO_PORT2 ;;for LATCH
641 GPAD_PORT_D0 equ GPIO_PORT0 ;; for D0
642 GPAD_PORT_D1 equ GPIO_PORT3 ;; for D1
643
644 GPAD_PORT_CFG_CLK equ GPIO_IO3_CFG
645 GPAD_PORT_CFG_LATCH equ GPIO_IO2_CFG
646 GPAD_PORT_CFG_D0 equ GPIO_IO0_CFG
647 GPAD_PORT_CFG_D1 equ GPIO_IO3_CFG
648
649 GPAD_CLK equ 1 ;;gpio 25 PIN 58
650 GPAD_LATCH equ 7 ;;gpio 23 PIN 45
651 GPAD_D0 equ 4 ;;gpio 21 PIN 22
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -