pic16f88 Serial questions (hserin/hserout, etc.)


Results 1 to 8 of 8

Threaded View

  1. #3
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default Re: pic16f88 Serial questions (hserin/hserout, etc.)

    Hello harralk,
    put all this code in UPPERCASE letters
    Code:
    DEFINE hser_rcsta 90h 'set receive register to receiver enabled
    define hser_txsta 20h 'set transmit register to transmitter enabled
    define hser_baud 9600 'set baud rate
    make sure your arduino is sending data TRUE not inverted, you CAN invert it with a single transistor, be sure to pull up the Rx input with about 4.7k resistor. I know there PICs in the family which are not so fussy, but don't know which ones they are.
    Does the RX pin (pin 8) need to be shorted to INT (pin 6)? I've seen schematics where the pins are shorted, but nothing in the documentation I've seen says this needs to be the case for what I'm doing.
    No that's a different interrupt, & on the subject of interrupts, I suggest you get some, try ON_INTERRUPT goto serial then set your intcon register . . . or use Darrel's instant interrupts and let them do all that brain damage for you and get free use of mighty fast assembly interrupts (THANKS DARREL) !.
    Last edited by Archangel; - 23rd October 2012 at 23:39.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

Similar Threads

  1. Help understanding HSERIN/HSEROUT
    By jmbanales21485 in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 9th March 2021, 07:47
  2. Hserin & Hserout - Trying to blink an LED
    By Megahertz in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 24th May 2010, 12:25
  3. PIC16F88 HSERIN to LCD Problem
    By robbrownuk in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 6th June 2009, 22:32
  4. Problems with HSERIN HSEROUT
    By Pesticida in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 20th September 2005, 17:24
  5. Hserin/hserout ?
    By Scott in forum General
    Replies: 6
    Last Post: - 27th April 2005, 23:46

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts