Changeset 83 in projects for magnetic-tape-show/wiring.h


Ignore:
Timestamp:
Aug 15, 2013, 12:39:45 PM (6 years ago)
Author:
sven
Message:

Show-File in C implementiert.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • magnetic-tape-show/wiring.h

    r82 r83  
    3434// PORT A: Realais Output 1-8, sic
    3535#define RELAIS_01  PORTA0
    36 #define RELAIS_02  PORTA1
    37 #define RELAIS_03  PORTA2
     36
     37// PORTA1 und PORTA2 scheinen defekt zu sein, umgelegt auf PORTD2, PORTD3
     38//#define RELAIS_02  PORTA1
     39//#define RELAIS_03  PORTA2
     40#define RELAIS_02  PORTD2
     41#define RELAIS_03  PORTD3
     42
    3843#define RELAIS_04  PORTA3
    3944#define RELAIS_05  PORTA4
     
    7782
    7883
    79 #define tape1_on()                      set_impuls(PORTA, RELAIS_01)
    80 #define tape1_for(v)            set_bit(PORTA, RELAIS_02, v)
    81 #define tape1_rew(v)            set_bit(PORTA, RELAIS_03, v)
    82 #define tape1_off()                     set_impuls(PORTA, RELAIS_04)
     84//#define tape1_on()                    set_impuls(PORTA, RELAIS_01)
     85#define tape1_on(v)         set_bit(PORTA, RELAIS_01, v)
     86#define tape1_for(v)            set_bit(PORTD, RELAIS_02, v)
     87#define tape1_rew(v)            set_bit(PORTD, RELAIS_03, v)
     88//#define tape1_off()                   set_impuls(PORTA, RELAIS_04)
     89#define tape1_off(v)        set_bit(PORTA, RELAIS_04, v)
    8390#define tape1_read(v)           set_bit(PORTA, RELAIS_15, v)
    8491
    85 #define tape2_on()                      set_impuls(PORTA, RELAIS_05)
     92#define tape2_on(v)                     set_bit(PORTA, RELAIS_05, v)
    8693#define tape2_for(v)            set_bit(PORTA, RELAIS_06, v)
    8794#define tape2_rew(v)            set_bit(PORTA, RELAIS_07, v)
    88 #define tape2_off()                     set_impuls(PORTA, RELAIS_08)
     95#define tape2_off(v)            set_bit(PORTA, RELAIS_08, v)
    8996
    90 #define tape0_on()                      set_impuls(PORTC, RELAIS_09)
     97#define tape0_on(v)                     set_bit(PORTC, RELAIS_09, v)
    9198#define tape0_for(v)            set_bit(PORTC, RELAIS_10, v)
    9299#define tape0_read(v)           set_bit(PORTC, RELAIS_11, v)
    93100#define tape0_rew(v)            set_bit(PORTC, RELAIS_12, v)
    94101#define tape0_lp(v)                     set_bit(PORTC, RELAIS_13, v)
    95 #define tape0_off()                     set_impuls(PORTC, RELAIS_14)
     102#define tape0_off(v)            set_bit(PORTC, RELAIS_14, v)
    96103
    97104#define sound_start(v)          set_bit(PORTC, RELAIS_16, v)
Note: See TracChangeset for help on using the changeset viewer.
© 2008 - 2013 technikum29 • Sven Köppel • Some rights reserved
Powered by Trac
Expect where otherwise noted, content on this site is licensed under a Creative Commons 3.0 License