I need a few prototype circuits , complete with code built. using a pic18f14k50. this circuit needs to take a 0-5v exponential mass flow input from one sensor, take a temp input from another, correct...
Type: Posts; User: awdgsx; Keyword(s):
I need a few prototype circuits , complete with code built. using a pic18f14k50. this circuit needs to take a 0-5v exponential mass flow input from one sensor, take a temp input from another, correct...
Here is my code. I must be doing something wrong becaue I keep getting strange values for the result. I get a 10bit ADC result, convert that result to a flow value with a lookup table with...
I believe the hpwm max on any pic is 32,000 hz?
I could but when I used my circuit for applications needing the 2 to 12khz scale I would run into the 16000hz celing of the hpwm command. Space on my circuit is very limited so I would like to find...
Is this possible? I'm taking a changing 0-5v input signal and converting it to either a 10 to 3000hz variable or a 2 to 12khz variable output with a lookup table. I believe I need to use HPWM because...
Any ideas?
Ok, I finally have it somewhat working. I can now read my variables, I can read what's programmed into the eeprom. The only problem is when I send values to my eeprom in my write loop it only...
I think this is what you intended for me to do.. I'm not sure how to advance the array location in the loop. You will see my comment in the code. Thank you again for the help!
usbservice...
I can send and receive data to the mcu. I'm using the usbout command for debugging right now. It sends 3 16 bi twords in one buffer to hyperterminal right now. I just can't figure out how to send a...
Sorry for not using "code"
' program for pic18f14k50
Include "cdc_desc.bas" ' Include the HID descriptors
Define OSC 48
Define ADC_BITS 10
Define ADC_clock 6
Define ...
Cleaned up the code and the comments a little..
I apologize.. some of my code comments need updating.
I'm trying to figure out how to do a complete 256 byte eeprom write and dump with usb. any help would be appreciated..
here is the code I found for doing it with serial..
Here is my code so...
So it's used like this?
Define osc 20 'use 20 Mhz clock
Define adc_bits 10
Define ADC_CLOCK 3
Define ADC_SAMPLEUS 24
EEPROM [216, 0, 217, 0, 219, 0, 223, 0, 229, 0, 237, 0, 246, 0, 0, 1, 12,...
I'm at a loss. I have figured out how to make a lookup table with eeprom, but i need to impliment a table with the program memory and can't quite figure out how to do this. Any help would be greatly...
So like this for my table..
WRITECODE 16384 , 1011
WRITECODE 16385 , 2014
WRITECODE 16386 , 3014
WRITECODE 16386 , 4050
Thank you!
well the first one is how do I store a table into the flash memory instead of the EEPROM
Im new at this so please be gentle. I'm using a pic185252 and a ltc1661 d to a.
The circuit needs to take a voltage reading from a flow sensor sample that
voltage by a set number of samples...