*sigh* Just another one of the things that leave me asking WTF were they thinking when they designed these chips... oh well..
Type: Posts; User: Freman; Keyword(s):
*sigh* Just another one of the things that leave me asking WTF were they thinking when they designed these chips... oh well..
I've just finished testing the USB-Serial cable, and it appears to be working.
I've hooked it up TX-RX, RX-TX, GND-GND to a PC serial port (Real hardware kind) and I can send and recieve data to...
I've had a look at the datasheet for the pic, and it states
"Flag bit RCIF is a read-only bit, which is cleared by the hardware. It is cleared when the RCREG register has been read and is empty."...
Umm, well... I don't understand the header... I sort of found one that worked and stuck with it ;)
Doesn't reading from RCIF clear it?
Doesn't a while statement read it?
I'm using a pl2303...
Which has left me with another problem...
The pic isn't recieving my strings right...
d and u are what I'm sending, d consistently returns v... don't know what u returns...
v returns 7, 7...
Oh dear - I feel stupid now...
I souldered the tx wire to dtr...
Never fear tho - I've had my eyesight checked, and the idiot that left me in charge has been taken out the back and flogged
No, in that schematic they're not connected to anything - but in reality they're hooked up to tx and rx of a usb-serial adapter. The schematic I posted was more to illustrate the reason behind the...
Here's the code
@ device pic16F628A, hs_osc, wdt_off, pwrt_on, lvp_off, protect_off, bod_on, cpd_off, pwrt_off, mclr_off
DEFINE OSC 20
DEFINE PULSIN_MAX 3000
CMCON = 7
I think I've found another side effect of using internal pullups...
I always figured if I couldn't get any other method working for this, I'd fallback to serial/uart communications...
I can't...
Sorry, it was stupid of me to forget the pic - it's a PIC16F628A
And no, I really have no room left for much more on that board, I can probably cram one more resistor in as a pulldown but that's...
Hi again.
I've got a slight issue with my task.
I need PortB to have internal pullups on because I'm enhancing an existing board design that relied on them, however - I have an issue with...
Ok, I don't understand how it resolved it... but windows update and reboot...
Ummm that's all good but microcode studio calls pbp :(
Hi guys.
It's been a while since I've done any pic work, I've gone and updated some old code and clicked the compiler, vista politely informs me that NTVDM.EXE has stopped working.
I manually...
I'd rather not use the software equiv in this case as it's quite a busy little chip and I'd really like to have the interrupt and buffering. I know I can use interrupts on portb, but portb is quite...
Hey guys.
Once again I re-iterate my thanks for the assistance you've been able to supply with my projects (I have several going - they're just beginning to merge, which leads me to the following)...
Thank you Melanie.
Now I couple that with a transformer-less PSU and an opto-coupler, and I have an isolated sensor.
Just one question. Is that meant to be GP0 or VSS?
T.Jackson - Sure there are, I've had several already :)
While I still have trouble with some electrical principles, I'm actually a fairly safe person around higher voltages (now - I learned my...
G'day folks.
I'm a little stuck, I want to measure mains load - I don't need it overly accurate, just enough to work out if something (say a tv/fan/etc) is on or off.
I'm looking to do it with...
Being one of the noobiest persons here, I have to say I appreciate all the help I've been given getting through my issues. Even when peoples suggestions have clobbered each other - it's still useful...
Actually the motor has it's own cut-out
When the screen is fully extended it kills the motor, and when it's fully retracted it does the same. That's built in the head end. The worse that'll happen...
It would be mounted behind the screen - the back side of the screen is a flat black - haven't tested it's reflectivity.
The other alternative is to use one piece of shiny 'something' on the back...
I did consider that - and it's not off the drawing board.
I was concerned with the amount of bending anything reflective attached to the back of the screen might suffer - I was also worried about...
Thanks mackrackit, I'll have a look at these.
I've already worked out I can't rely simply on adding 1 to a word (while in theory this works, in reality there's quite a deviation)
I am prepared...
He guys.
Is there any way (other then DarrelTaylor's elapsed timer) to work out how many seconds have passed?
Darrel's method K/O's my pulsin code.
I was looking to time the descent of the...