About PIC16F15323


+ Reply to Thread
Results 1 to 3 of 3

Thread: About PIC16F153234 days old

  1. #1
    Junior Member canilica's Avatar
    Join Date
    Jan 2016
    Posts
    6
    Thumbs Up
    Received: 0
    Given: 0
    Total Downloaded
    2.86 GB

    0 Not allowed!

    Default About PIC16F15323

    Hi,
    Does proton compiler support PIC16F15323 properly. I think new architecture so i cant coding very well on this chip. For example how i use TX(RC4) pin with HSEROUT command and also how pre set for TX.

  2. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  3. #2
    Fanatical Contributor top204's Avatar
    Join Date
    Feb 2002
    Posts
    3,702
    Thumbs Up
    Received: 361
    Given: 173
    Total Downloaded
    2.08 GB

    0 Not allowed!

    Default Proton Compiler: Alter the Baud rate and PPS for USART1 on a PIC16F15323

    The new versions of Proton automatically setup the PPS when the declares are used for the USARTs. For example:

    Code:
        Device = 16F15323
        Declare Xtal = 8
    '
    ' Setup USART1 (Also automatically alters the Baud rate SFRs and PPS for the pins used)
    '
        Declare Hserial_Baud = 9600
        Declare Hserout1_Pin = PORTC.4
        Declare Hserin1_Pin = PORTC.3
    The above will set the Baud rate for USART1 and automatically set the various SFRs required for that Baud, or as close as it can get to the required Baud by altering different bits of SFRs until it is as close as possible, and it will set the PPS for the PORTC.3 and PORTC.4 pins to be used for Hrsin and Hrsout or Hserin and Hserout.

    If you open the Asm file by pressing the F2 button, you will see the texts in the assembler code:

    Code:
    ; UART1_ACTUALBAUD = 9615.38
    ; UART1_BAUDERROR = 0.15625
        movlb 0X02
        movlw 103
        movwf  SP1BRG 
        clrf  SP1BRGH 
        movlw 36
        movwf  TX1STA 
        movlw 144
        movwf  RC1STA 
    ; CONFIGURE USART1 PPS
    ; CONFIGURE HRSOUT1 PPS
        movlb 0X3E
        movlw _PPS_FN_TX1
        movwf RC4PPS
    ; CONFIGURE HRSIN1 PPS
        movlw 0X13
        movlb 0X3D
        movwf RX1DTPPS
        movlb 0X00
    I've tried over the years to make Proton as easy as possible to setup the standard peripherals, without having to load many, large and overly complex, libraries that C requires.
    Last edited by top204; 16th September 2020 at 16:41.

  4. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  5. #3
    Junior Member canilica's Avatar
    Join Date
    Jan 2016
    Posts
    6
    Thumbs Up
    Received: 0
    Given: 0
    Total Downloaded
    2.86 GB

    0 Not allowed!

    Default Re: Proton Compiler: Alter the Baud rate and PPS for USART1 on a PIC16F15323

    Thank you soo much, dear friend.

  6. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. SPI Interface on PIC16F15323
    By gdesantis in forum Website / Forum Issues
    Replies: 2
    Last Post: 2nd February 2019, 18:44
  2. Request for Assistance - PIC16F15323
    By gdesantis in forum Proton Plus Compiler v3
    Replies: 5
    Last Post: 31st December 2018, 00:43

Posting Permissions

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