+ Reply to Thread
Results 1 to 6 of 6
Thread: PIC12F1840 & serout2
-
- 8th February 2019, 00:29 #1
PIC12F1840 & serout2
Hi,
Anyone used the PIC12F1840 with serout2? Any tricks to it? I can't get anything out.
Regards,
Troy
-
- 8th February 2019, 07:17 #2
Re: PIC12F1840 & serout2
Can't say I've used that specific command with that specific part but apart from the usual stuff* I don't see why it shouldn't work.
* Where the usual stuff would be:
Correct oscillator configuration.
Analog functions on pin(s) in question turned off.
The 12F1840 does have an EUSART, use that instead - if you can.
If you need further help post the code.
/Henrik.
-
- 8th February 2019, 07:44 #3
Re: PIC12F1840 & serout2
there may be a clue in the manual
SEROUT2 is not supported on 12-bit core PIC MCUs due to RAM and stack constraints.
'This is more entertaining than Free to Air TV
-
- 8th February 2019, 11:28 #4
Re: PIC12F1840 & serout2
Damn, I can't believe I missed that. Thanks for the answer Richard. I only need a really slow baud rate so I might try the old serout. Failing that, it'll have to be the EUSART although my experience with the EUSART on the PIC18F14K50 is it chewed up a quite a bit of juice when enabled...
Cheers,
Troy
-
- 8th February 2019, 11:55 #5
Re: PIC12F1840 & serout2
Ummm... now reading p10 of the datasheet "This family of devices contain an enhanced mid-range 8-bit CPU core". So, I'm guessing it's not 12 bit?
Troy
-
- 8th February 2019, 12:55 #6
Re: PIC12F1840 & serout2
Okay, the EUSART seems to work fine and doesn't appear to consume any noticable extra power for this chip so hardware serials comms it is.
Troy
Similar Threads
-
Peculiar issue with U2 programmer - PIC12F1840 / Win 7 Ultimate x64
By mtripoli in forum mel PIC BASIC ProReplies: 2Last Post: - 4th February 2015, 18:06 -
How can I do this (reversing high & low states depending on deployment & user need)
By HankMcSpank in forum GeneralReplies: 5Last Post: - 17th May 2012, 10:14 -
SERIN2, SEROUT2,& HSEROUT works great, HSERIN not working
By rodkern in forum SerialReplies: 8Last Post: - 11th July 2011, 20:20 -
Comunication between 12F683 & 16F84A with serin2/serout2
By kklim29 in forum mel PIC BASIC ProReplies: 10Last Post: - 29th April 2010, 18:16 -
ICD & PBP && how to get it to work
By archendekta in forum mel PIC BASIC ProReplies: 26Last Post: - 24th March 2010, 02:56
Bookmarks