PIC Mapping for : [05.01.2005] for wiring details, refer to schematic on the website. [analoog aan Trump] data-port: RB0-RB7 Port B van de PIC, alle bits geflipt: RB7 ==> D0 pic pin 28 RB6 ==> D1 pic pin 27 RB5 ==> D2 pic pin 26 RB4 ==> D3 pic pin 25 RB3 ==> D4 pic pin 24 RB2 ==> D5 pic pin 23 RB1 ==> D6 pic pin 22 RB0 ==> D7 pic pin 21 adressing strobe signals for the latches: Port C van de PIC: RC0 = Timer 1 output. Test LED op PIC board (zoals op het board) LED via 1k2 naar GND. pic pin 11 RC1 = nc pic pin 12 RC2 = PWM output - (0-5V) pic pin 13 used for 0 to 10V motor control signal RC3 = A0, latch 0 notes 32-39 pic pin 14 RC4 = nc pic pin 15 RC5 = nc pic pin 16 RC6 = nc pic pin 17 RC7 = serial input for MIDI data pic pin 18 (zoals op het board) Port A van de PIC: RA0 = A1, latch 1 notes 40-47 pic pin 2 RA1 = A2, latch 2 notes 48-55 pic pin 3 RA2 = A3, latch 3 notes 56-63 pic pin 4 RA3 = nc pic pin 5 RA4 = nc, pull up 4k7 pic pin 6 RA5 = motor ON/OFF bit pic pin 7 GROUND: pic pin 19 pic pin 8 POSITIVE SUPPLY: pic pin 20 Software implementation: Channel = 2 (&H02) Note range: (note-on & note-off implemented): 32 to 63 (32 notes, note range 36-62, not notes = lights and effects) notes out of the range should be rejected in the PIC software. The software should have a four byte array to store the contents of the latches: la(0) to la(3) On init, all strobe bits should be high and all notes switched to OFF. The note latches should be cleared. This should also happen on reception of an all-notes off command: AllOff: FOR i = 0 to 3 la(i) = 0 JMP Strobing NEXT Volume controller: controller nr. 1 channel 2 (counting from 0) The received value for this controller should be output as a repeated PWM signal on pin 13 (RC2) of the PIC. For parameter value 0, the RC2 pin should be 0. (no PWM) For parameter value 127 ,RC2 should be 1. (no PWM) For Bourdonola no OptoR is used, but 0-10V dc controll. We use no buffering other than the power mosfet followed by an RC with time constant ca. 57ms. (10mF / 5k7) Motor on/Off controller: controller nr. 66 Motor on off should have no effect on the PWM value.