demym Posted February 6, 2009 Report Share Posted February 6, 2009 Hi,i've succeeded in buidling a Core V3. I also built the a true bypass loop controlled by ULN2803A and relay. I built it following this diagram:It works nice when givin 5 volts (that i take from J2 on the core) to the board and connecting J5 to ULN --> to the relay.... Buti have not built yet a DOUT, and wouldn't do it if i didn't had the following problem:I am trying to use the J5 DOUT C code, in this way:Init function code: J5_IO_Init(0x00); //al J5 pins for DOUT ADCON1 = 0x07; TRISA &= 0xd0; TRISE &= 0xf8;MPROC_NotifyReceivedEvnt function code: if ((evnt0==176) && (evnt1==65)) //wanna react to Control Change 65, channel 1, value 0 turns off the loop, 127 turns it on { if (evnt2==0) PORTAbits.RA0 = 0; if (evnt2==127) PORTAbits.RA0 = 1; return; }But this code doesn't work.. at the moment the looper works thanks to the 5V on pin 1... but that's not programmable, isn't it ?Am i missing something ? (surely, but what ?)Thanks a lot in advance Quote Link to comment Share on other sites More sharing options...
stryd_one Posted February 7, 2009 Report Share Posted February 7, 2009 PORTAbits.RA0 = 0; extern void J5_IO_PinSet(unsigned char pin, unsigned char value) __wparam; ;) Quote Link to comment Share on other sites More sharing options...
demym Posted February 7, 2009 Author Report Share Posted February 7, 2009 Yessss !! Didn't think it could be so easy... :) Thanks a lot Quote Link to comment Share on other sites More sharing options...
stryd_one Posted February 7, 2009 Report Share Posted February 7, 2009 Heheh NP mate. TK tends to make everything he touchesA) go faster, andb) easyAnyway, you probably already noticed that the quote there is from the header file, which is often a good hint of what functions are available. There is usually more info in the corresponding .c file too. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.