Wow Richard, thanks for that! I guess I was way off. I used Melanie's Olympic Timer as the basis for my code and she included some of the things that you have advised against such as adding the...
Type: Posts; User: jmgelba; Keyword(s):
Wow Richard, thanks for that! I guess I was way off. I used Melanie's Olympic Timer as the basis for my code and she included some of the things that you have advised against such as adding the...
Ioannis, thank you for your reply. I do actually see a pulse and have been using it to measure changes I've been making, although it is always fairly constant at about 1ms pulse to pulse. I'll assume...
OSCCON = %01110011
DEFINE OSC 8
DEFINE WRITE_INT 1
Include "modedefs.bas"
SSW var PortA.7
redport var PortB.5
blueport var PortB.7
greenport var PortB.6
enable1 var PortB.2
Here's the entire code.
Redport = 0 was a typo and should have been = 1. The loop worked once I disabled the external oscillator requirements for timer1.
18F1320 using internal 8MHz oscillator...
I have a very simple test loop that only partly functions and I cannot figure out why.
main:
if PortB.0 = 0 then
if PortB.1 = 1 then
if PortB.4 = 1 then
runtime = 60
endif
endif
So I got a copy of PBP3, MCS4, MPLABX IDE 5.50, and yeah, same result. Plus a whole bunch of other issues such as programmer issues (fixed) makefile issues (not fixed) MCS not connecting to MPLAB...
I haven't touched a pic in years. I really don't do much with firmware at all. I'm completely out of date, have no skills, and forgot all the stuff I learnt a decade ago. All I want to do is run a...
There has to be something else going on too. I'm using software that was used when these interrupts where first written. I did just upgrade to the free 4.0.0.0 version of MCS+ so I'll try that. No...
I'm using old stuff :biggrin: I don't see an option to enable or disable generation of COFF files in this super old version of MCS+. 3.0.0.1 I think, MPLAB is 8.20a, mpasm is 5.30, and pbp is 2.60a.
Oh wow, thanks! I didn't realize it was so tabulation sensitive. This removed a few errors but still a couple left to clear. I'm thinking of commenting out that area of the include as it pertains to...
Hi Guys,
I'm having some compiler issues when trying to create a program around DT's interrupts and elapsed timer. In the below code, if I comment out
@ INT_ENABLE TMR1_INT ; Enable Timer 1...
Is there a way to use any pin as an input to the timers? I need to add a feature to a currently in production design that reads 2 frequencies but the CCP1 and CCP2 pins are currently used for other...
For the first time I have to provide firmware for an assembly company to program boards on an assembly line at around 20,000 units a year. I've only ever programmed at low volume which I do manually...
Looking to convert a 10 bit 0 - 1023 adc reading to 0 - 255. I've tried dividing by 4, dividing by 2 and putting into a byte then dividing that byte by 2 but I keep getting errors. Is there a better...
The mode is correct but I did miss the analog setting. Thank you.
PIC 18F2550
There is data from each pin so the pins are correctly set to digital outputs. The clock does idle high and goes low for each bit. I'm stumped. I've followed code I've used before that...
I cant seem to get a MCP41100 single digital pot to work. The wiper is always at mid point. I've tried many different things to get this working but just no luck. Can anyone see what the issue might...
I cant seem to get some of the ADC readings to write to EEPROM. Channels 0 and 1 work perfectly the others write anything. Any idea whats going on? I think all the ports are set correctly.
Define...
Turns out this was a MPASM issue. Once I had that resolved the program worked.
No. Does the PicKit 3 programmer hold it high or low when powering the target board?
I do have it disabled in the config bits.
Yes you're right. I hadnt changed the comment but the setting is correct for what I need. Still, It is not running. I've noticed that the code is being loaded into the end of the program space and...
I'm having a problem getting a really simple program to run on an 18F4550. It just a couple of blinky LED's to verify the PIC is alive. I can program it fine and read back from the device but cannot...
I've read the datasheet and didn't see any issues in using all 13 ADC channels at the same time, but are there any gotchyas out there I'm missing? I need to cycle through them all, read the values...
As simple as that, eh? lol
I am trying to take the hex value of an ASCII character stored in EEPROM , convert it back to a text character and send it to a device on the PIC serial port using serout or serout2.
So lets say I...