Search found 310 matches
- Thu Oct 26, 2006 5:31 pm
- Forum: Compiler
- Topic: a/d problem
- Replies: 20
- Views: 13373
Hi Darrel, thanks for the help. I've tried your suggestion and using FOSC_64 but it still seems to approximately the same thing. voltage SF PBP 1.05 15-40 217-219 2.03 230-250 417-419 3.0 440-470 617-619 4.0 640-670 827-829 4.96 830-850 1023 any other ideas? PS it would seem better to default to the...
- Wed Oct 25, 2006 9:06 pm
- Forum: Compiler
- Topic: a/d problem
- Replies: 20
- Views: 13373
a/d problem
why dosnt the following ato d code give the correct result ? Device = 18f458 Clock = 40 Config osc = hspll // LCD options... #option LCD_DATA = PORTD.0 #option LCD_RS = PORTD.4 #option LCD_EN = PORTD.5 // uses LCD and AD libraries... Include "LCD.bas" Include "ADC.bas" Include "convert.bas" // initi...
- Sun Oct 15, 2006 10:03 am
- Forum: Modules
- Topic: Hardware PWM
- Replies: 7
- Views: 6219
I Have now but its specific to the 18f458, but thats not the point. Most if not all the 18f series have pwm included but the number and port location varies, i dont have the abilitiy the write a module that will abstract the hardware nicely. Many people coming to this compiler will be hobbiests or w...
- Sat Oct 07, 2006 10:48 am
- Forum: Modules
- Topic: Hardware PWM
- Replies: 7
- Views: 6219
Hardware PWM
Is there likely to be a hardware PWM module?
ok i'm confused as to why this became a problem as i didnt change anything in the program when the wdt became a problem. anyway... i changes the system.bas file as you suggested that stopped it resetting. so now i've reenabled. the following code doesnt reset. and has 6 references to clrwdt in the a...
OK this is the top of my prog Device = 18f458 Clock = 20 'PicBasic program for stepper motor #option WDT = true #option LCD_DATA = PORTD.4 #option LCD_RS = PORTB.4 #option LCD_EN = PORTB.5 Include "LCD.bas" Include "utils.bas" Include "usart.bas" Include "convert.bas" Include "math.bas" Include "str...
WDT
I've suddenly started to have a problem with the WDT resetting with the following code.
Repeat
tempchar = USART.ReadByte
LCD.WriteAt(2,2,"*")
Until tempchar = "G"
If i disble when programming, then the program works fine.
Rich.
Repeat
tempchar = USART.ReadByte
LCD.WriteAt(2,2,"*")
Until tempchar = "G"
If i disble when programming, then the program works fine.
Rich.
- Wed Oct 04, 2006 11:05 am
- Forum: Modules
- Topic: lcd options
- Replies: 2
- Views: 3806
- Wed Oct 04, 2006 8:00 am
- Forum: Modules
- Topic: lcd options
- Replies: 2
- Views: 3806
lcd options
I Have a 4x20 lcd display and if i WriteAt(3,1,"here") the text appears at about coulumn 16(this is a guess)
should there be an option to set the screen size?
i have to print on line1 at column 21 to work.
should there be an option to set the screen size?
i have to print on line1 at column 21 to work.