Damn, I knew it was something simple but my eyes kept going over it!
Now that it works time to complicate it. Thank you very much!
Take care, stay safe and talk to you soon
Type: Posts; User: alec; Keyword(s):
Damn, I knew it was something simple but my eyes kept going over it!
Now that it works time to complicate it. Thank you very much!
Take care, stay safe and talk to you soon
Good evening all.
I'm trying to enable timer 3 and timer 5 as counters, and clearly I have something wrong. I can't write to them to zero them out, and they don't count. Reading the datasheet as...
X = 4096 * 100
Percent = div32 value
Lcdout (dec2 percent)
Thanks Henrik, now it makes sense. When I got it to operate correctly under the internal oscillator, by setting the correct values for the OSCCON register, telling it to use the 8 mhz internal clock,...
OK Henrik - you were right. I changed PLLDIV to 4, and set OSC = 48, and it works.
But now I have to ask why it didn't work when I tried OSC = HS
; CONFIG CFGPLLEN = OFF ; PLL...
And yes, I'm using the bootloader.
Thanks much - I'll keep reading the datasheet, see what I'm missing.
Take care
Alec
Thanks Henrik
The default config file has the PLL disabled. I did get it running on the internal oscillator, so yes, its a configuration issue. More time with the datasheet I guess...
Hello all
What I suspect is a simple problem is driving me nuts.
I got a MikroE clicker1 board, it has a 18F47J53 PIC on it. Doesn't have enough output pins in one port for an LCD so I'm using a...
This is a program I wrote a while back to read a barometer and a humidity/temperature sensor
Good luck
'****************************************************************
'* Name :...
There was a recent thread that explained that you have to shift the seven bit address left, and let PBP insert bit 0 for the I2Cread or I2C write command. Using both a barometer chip and a humidity...
Hi
This is some code I wrote to use that board as a basic loop calibrator. Worked OK for me.
Take care
Alec
'****************************************************************
Damn!!!
Thanks Darrell - ebeer to you:biggrin:
Hello all
I'm trying to use a new chip to me, an 16f1826. I liked the idea of the 4.086 internal voltage reference. I wrote the test code below, trying to follow the datasheet. Unlike others, I've...
BTW - I'm using a PS205-1 AC input photocoupler. Works great with a 10k 1 watt resistor in the input.
Alec
Hi All, and apologies for not getting back to you all sooner (damned work!!)
I hate to admit this, but a wire had gotten disconnected on my bread board - amazing how much better a PIC works when it...
Hi all
I've been trying to control a triac using an interrupt on RB0 and going to an interrupt handler - been basing it on the discussion surrounding Mr E's lamp dimmer code.
...
Well, I got it working the essentially the way I wanted it to.
Holding the up button for a few seconds turns the power on, holding the down button turns the power off.
Thanks for the help and links...
Hi Joe
Thanks for the links - I followed some of the threads and Melanie's explanation that Darrel refers to is easiest for my simple brain to wrap around...
But, I have to resist the temptation to...
Thanks Joe - I'll try it when get home tonight
"LED var byte[10] '10 bits - 1 for each led segment
LED0 var PortB.0
LED1 var PortB.1
LED2 var PortB.2
LED3 var PortB.4
LED4 var...
Hello all
I have what should be a simple program to control a car heater motor - two pushbuttons to increment or decrement a counter and the counter becomes the duty cycle for a PWM output. For some...
Hi Polymer
try this - I used a 12F683
Take care
Alec
'****************************************************************
'* Name : fan controller_forum *
'* Author :...
Thanks Arch
I dumped the .asm file into excel to get line numbers, and line 96 was blank, right after @ device pic16f628a, INTRC_OSC_NOCLKOUT. I'd had an exrta comma in the file - took that out and...
Hello all
I'm working on a way to monitor a quadrature encoder feeding back to a VFD to independantly verify that the drive and motor have decelerated when commanded to do so. My program, below,...
hi boboco
Try adding a 10ms pause between the two LCDOUT statements. It's the only way I've been able to display multiple lines.