• AVR Freaks

PIC16F15376 PullUp, trust datasheet?

Author
stenakew
Starting Member
  • Total Posts : 31
  • Reward points : 0
  • Joined: 2013/09/04 10:54:16
  • Location: 0
  • Status: offline
2019/12/04 10:20:36 (permalink)
0

PIC16F15376 PullUp, trust datasheet?

Hej.
Using MPLAB X 5.30, MPASM 5.86, ICD 3 and a PIC16F15376 (Device Revision ID = 2001).
 
The datasheet (DS40001866B) states there are no pullup on port D and E (a dash in table 4). Nothing on this in the Errata (DS80000725B).
 
But using this test program

 
 
#include "p16f15376.inc"

__CONFIG _CONFIG1, _FEXTOSC_OFF & _RSTOSC_HFINT1 & _CLKOUTEN_OFF & _CSWEN_OFF & _FCMEN_OFF
__CONFIG _CONFIG2, _MCLRE_ON & _PWRTE_OFF & _LPBOREN_OFF & _BOREN_ON & _BORV_LO & _ZCD_OFF & _PPS1WAY_OFF & _STVREN_ON
__CONFIG _CONFIG3, _WDTCPS_WDTCPS_31 & _WDTE_OFF & _WDTCWS_WDTCWS_7 & _WDTCCS_SC
__CONFIG _CONFIG4, _BBSIZE_BB512 & _BBEN_OFF & _SAFEN_OFF & _WRTAPP_OFF & _WRTB_OFF & _WRTC_OFF & _WRTSAF_OFF & _LVP_ON
__CONFIG _CONFIG5, _CP_OFF

RST code 0

banksel ANSELA
clrf ANSELA
banksel ANSELB
clrf ANSELB
banksel ANSELC
clrf ANSELC
banksel ANSELD
clrf ANSELD
banksel ANSELE
clrf ANSELE
movlw H'FF'

main_loop
banksel WPUA
movwf WPUA
banksel WPUB
movwf WPUB
banksel WPUC
movwf WPUC
banksel WPUD
movwf WPUD
banksel WPUE
movwf WPUE

xorlw H'FF'
goto main_loop

end
 

 
I can see pulses on all pins when using an oscilloscope and a 100k resistor connected to ground (OK I have not tested ICSPDAT, ICSPCLK and MCLR).
 
Your input: Can I trust my measurements or will I get hit by the next revision/batch of the chip? Or am I doing something wrong?
 
/Sten-Åke
 
 
#1

5 Replies Related Threads

    Nikolay_Po
    Super Member
    • Total Posts : 1932
    • Reward points : 0
    • Joined: 2012/04/01 13:49:27
    • Location: Russia, Novorossiysk
    • Status: offline
    Re: PIC16F15376 PullUp, trust datasheet? 2019/12/04 11:14:58 (permalink)
    +1 (1)
    If the presence of pullup is important for your project in long term then register and ask Microchip tech support. Only Microchip itself can confirm a misprint or to disclaim the usage of pullups which aren't described.
    https://microchipsupport.force.com/s/
    The domain name is not belong to Microchip because first line of support is an outsource. It is OK. I had filled several "cases" and every time have got an answers from Microchip representatives.
    #2
    jack@kksound
    code tags!
    • Total Posts : 3221
    • Reward points : 0
    • Joined: 2014/05/14 10:03:19
    • Location: 0
    • Status: offline
    Re: PIC16F15376 PullUp, trust datasheet? 2019/12/04 11:43:33 (permalink)
    0
    Table 4-9 on page 62 shows WPUB,WPUC,WPUD and WPUE for the 16F15376 in Bank 62. And if the assembler allows you to write to those registers why exactly do you think it is not present? Maybe show a screen shot of the table you say shows "a dash"?
    #3
    Mysil
    Super Member
    • Total Posts : 3489
    • Reward points : 0
    • Joined: 2012/07/01 04:19:50
    • Location: Norway
    • Status: offline
    Re: PIC16F15376 PullUp, trust datasheet? 2019/12/04 11:52:41 (permalink)
    0
    Hi,
    Device support header file for C language have declarations for weak pullup for both port C and D
    C:\Program Files (x86)\Microchip\xc8\v2.10\pic\include\pic16f15376.h
     
    And obviously also in the include file for the assembler,
    since you are able to use those symbolic names in the code.
     
    It seem to me that they are meant to be there.
     
        Mysil
    #4
    stenakew
    Starting Member
    • Total Posts : 31
    • Reward points : 0
    • Joined: 2013/09/04 10:54:16
    • Location: 0
    • Status: offline
    Re: PIC16F15376 PullUp, trust datasheet? 2019/12/11 18:36:38 (permalink)
    0
    Hej.
    From Microchip support.
    "The WPU is present on the ports D and E as well on the PIC16F15376 device. It must have been omitted from the datasheet as a typo."
    (This concerns table 4, page 11-12 in the data sheet.)
     
    /Sten-Åke
     
    #5
    ric
    Super Member
    • Total Posts : 24646
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: PIC16F15376 PullUp, trust datasheet? 2019/12/11 18:44:29 (permalink)
    +1 (1)
    jack@kksound
    Table 4-9 on page 62 shows WPUB,WPUC,WPUD and WPUE for the 16F15376 in Bank 62.

    Agree
     

    And if the assembler allows you to write to those registers why exactly do you think it is not present? Maybe show a screen shot of the table you say shows "a dash"?

    As stated in post#1, it is "TABLE 4", (which is on page #12), that shows dashes in the "pullup" column for those two ports.
    https://ww1.microchip.com...-40001866B.pdf#page=12
     
    Plainly Microchip now agree that is a typo.
     
    post edited by ric - 2019/12/11 18:50:00

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #6
    Jump to:
    © 2019 APG vNext Commercial Version 4.5