HSERIN2 Problem on 18F23k22


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959

    Default Re: HSERIN2 Problem on 18F23k22

    Hi ethobias,

    Apparently, Microchip has changed the size of the ACCESS bank on this family.
    So the HSER2 DEFINEs are not working.
    We need to fix that. But in the mean time you can use these statements instead of the DEFINEs.

    Code:
    RCSTA2 = $90 ' Enable serial port & continuous receive
    TXSTA2 = $20 ' Enable transmit, BRGH = 0
    SPBRG2 = 25  ' 9600 Baud @ 16MHz, 0.16%
    DT

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898

    Default Re: HSERIN2 Problem on 18F23k22

    Really? I thought direct register config didn't worked for HSERIN(2).

    EDIT: Nevermind, it's a workaround...
    Last edited by mister_e; - 21st May 2011 at 00:19. Reason: blonde moment... or not.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959

    Default Re: HSERIN2 Problem on 18F23k22

    Well, I started working on a fix for this problem today, and found out there wasn't a problem after all.
    Apparently I was looking at the wrong datasheet.

    Testing of the program from post #1 passed on an 18F23K22.

    ethobias,
    Can you tell me more about your setup?
    Are you still having a problem?
    DT

Members who have read this thread : 0

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