Yeah, I switched it to 2400 baud rate and turned off the handshake. Maybe the visual basic code is wrong or the code on the PIC should be "if OK = 4" instead of 4 being in quotation marks. Or am I...
Type: Posts; User: mbw123; Keyword(s):
Yeah, I switched it to 2400 baud rate and turned off the handshake. Maybe the visual basic code is wrong or the code on the PIC should be "if OK = 4" instead of 4 being in quotation marks. Or am I...
OK, thanks for the response.
I tried it without the RTS / CTS lines but it still didn't work.
Sorry about the HSER defines, I used them before and I forgot to get rid of them. Even without...
Hello,
I am trying to hook up my PIC18F4550 to my serial port and send data using Visual Basic. The code for the PIC is below. I have a 22K resistor on the RX line of the PIC. The RTS and CTS...
It takes five seconds for the LED to come on.
I tried to turn it on without using the RTS and it works fine.
Just now, I tried putting a diode on the pin and it actually seems to be working...
Alright, I got it working by changing adding "DEFINE OSC 4." So it works fine now. However, when I tried the original program there is still a pause. When I turn the pin off there is no pause,...
OK, this is really weird. I made a LED blink program but it takes like 5 seconds to turn on and then it doesn't blink, it just stays on. How do I turn off the 37khz oscillator? Thanks.
-Mike
Thanks for the response.
The resistor is in series with the pin. And I'll try to test the LED program right now.
-Mike
Hello,
I am using an 18F4550 and I am trying to get it to read a digital input and turn on a LED when it is on. For some reason there is a five second pause when I trigger the pin. When I reset...
OK, thanks.
-Mike
"Which serial modes are you using"
I am using the HSERIN and HSEROUT commands. I haven't actually tested it yet because I've been working on RTS and CTS. Do I need to use SERIN and SEROUT with the...
Wow, thanks Skimask, it appears to be working. I put the 22K resistor in and it is recognizing the voltage from the serial port.
The one thing I didn't understand is
"it'll be inverted from...
"you're not using a MAX232 or at least a series resistor like the green manual says..."
Uhhh...oops. I am using a 22K resistor on the transmitter line of the serial port but not on the RTS. What...
Thanks,
I put that in but I am still having problems. I think it has something to do with the serial port. I have connected the RTS line to porta.0. When I measure the voltage with a voltmeter...
Hello,
This should be a really simple problem but I spent tons of time reading the datasheet and couldn't find a solution. I am trying to get a digital input on porta.0 and trigger a led to...
I appreciate the responses. I may have to abandon this project because of the aforementioned difficulties. However, for future projects, how would I strengthen the sensitivity of the ADCIN reading...
Uh oh, I smell a difficult project ahead if I were to try that. If I stuck with what I am doing (IR emitter and receivers) , what difficulties would I run into as far as measuring distance using...
dhouston, you said that I should send a ultrasound pulse to find distance. But how would I track the position of a specific object (one with a IR emitter, for example) without using anything too...
Thanks guys. I'll try it out and post my results.
-Mike
Hello everyone,
I am using a PIC18F4550 and I am trying to measure the strength of an IR beam (translating to distance). I am using this...
Thank you very much, Henrik! This problem has been plaguing me forever.
-Mike
Hello everyone,
Can someone tell me how to configure adcon(1)? I need to use all the analog channels on my PIC18F4550 for the adcin command. Can anyone tell me how to read the datasheet?
I...
Does anyone have a link or know of an article about this where I could go to?
-Mike
I might use the USB feature... I don't know if I need the feature right now though.
I think I will use this code...but are the adc_bits and adc_sampleus numbers arbitrary?
DEFINE OSC 4
DEFINE...
I would like to read all channels. And I am using a 20mHz crystal, although I know I need a DEFINE OSC 20 for that. What I don't understand is how to read the tables in the datasheet and how to set...
Hello everyone,
I have a simple question: I am trying to use the adcin command to get input from a pot source on a 18F4550. I am hacing problems with the defines and setting it up. I assume I...