Search found 10 matches

by madru
Fri Nov 20, 2009 6:44 pm
Forum: Compiler
Topic: USB detach
Replies: 0
Views: 1650

USB detach

is that the correct way to remove the HID.device from the bus?

Code: Select all

   UCON = 0                               // Disable module & detach from bus
   UIE = 0                                // Mask all USB interrupts
THX

Madru
by madru
Sun Nov 08, 2009 9:05 pm
Forum: Compiler
Topic: CSS code to Swordfish
Replies: 1
Views: 1873

CSS code to Swordfish

Hi, I try now since a couple of hours to translatethe 16F690 CSS C code into Swordfish for 18fxxxx but with no real success on the interrupt routine the original code looks like this: #int_TIMER1 void uberlauf_timer1 (void) // hier die Timer Überläufe erfassen {timer1_uberlauf++;} /*****************...
by madru
Tue Nov 03, 2009 10:10 am
Forum: Compiler
Topic: usbhid and suart together
Replies: 2
Views: 1763

BINGO

THX :P
by madru
Tue Nov 03, 2009 9:25 am
Forum: Compiler
Topic: usbhid and suart together
Replies: 2
Views: 1763

usbhid and suart together

Hi, is it possible to use both lib's together? - I like to see my HID debug output via RS232 Device = 18F2550 Clock = 48 // 20Mhz crystal, 48Mhz internal (FS USB) Config PLLDIV = 2, CPUDIV = OSC1_PLL2, USBDIV = 2, FOSC = HSPLL_HS, //CPU=48 MHz PWRT = ON, BOR = OFF, VREGEN = ON, //USB Voltage Regulat...
by madru
Thu Oct 29, 2009 8:18 pm
Forum: Compiler
Topic: 18f2550 and PortE
Replies: 6
Views: 3527

Hi RKP, THX for all your help, my modifications of the inc and bas file are the same (obviously)...... anyway I have it working now BUT not on my EasyPIC5 board, the RE3 ends up somewhere in the on-board programmer :? ......I removed pin 1 from the board ,added a 10K pullup and I am a happy bunny no...
by madru
Wed Oct 28, 2009 9:48 pm
Forum: Compiler
Topic: 18f2550 and PortE
Replies: 6
Views: 3527

Hi RKP, changing the 18f2550.bas and 18f2550.inc will get rid of the compiler errors but RE3 doesn't work correctly, the ASM looks OK (I guess) BTFSS PORTE,3,0 and BSF TRISE,3,0 the only little thing is the comment in the datasheet: The fourth pin of PORTE (MCLR/VPP/RE3) is an input only pin. Its op...
by madru
Tue Oct 27, 2009 7:07 pm
Forum: Compiler
Topic: 18f2550 and PortE
Replies: 6
Views: 3527

....tried that already, also modifying the 18f2550.bas file doesn't help.... declaring the following in Swordfish PORTE as byte absolute $0F84, //only RE3 can be used PORTC as byte absolute $0F82, PORTB as byte absolute $0F81, PORTA as byte absolute $0F80 will end up in ; SYSTEM PORTS... PORTC EQU 0...
by madru
Tue Oct 27, 2009 11:40 am
Forum: Compiler
Topic: 18f2550 and PortE
Replies: 6
Views: 3527

18f2550 and PortE

Hi, how can I use RE3 as an input, looking though the definitions: public system port PORTC as byte absolute $0F82, PORTB as byte absolute $0F81, PORTA as byte absolute $0F80 PORTE is missing, should it not be public system port PORTE as byte absolute $0F84, //only RE3 can be used PORTC as byte abso...
by madru
Sat Oct 24, 2009 11:46 am
Forum: Compiler
Topic: USB and interrupts
Replies: 1
Views: 1805

Re: USB and interrupts

Good evening, this is my 1st post in Swordfish forum, please have lenity with me :wink: I played today the first time with the compiler, ... hours later .... I looked into the HID example and tried to modify it and added a 2nd timer. The new timer should drive a software clock but surprise surprise...
by madru
Thu Oct 22, 2009 9:20 pm
Forum: Compiler
Topic: USB and interrupts
Replies: 1
Views: 1805

USB and interrupts

Good evening, this is my 1st post in Swordfish forum, please have lenity with me :wink: I played today the first time with the compiler, ... hours later .... I looked into the HID example and tried to modify it and added a 2nd timer. The new timer should drive a software clock but surprise surprise ...