Anyone know about this PIC?


Closed Thread
Results 1 to 16 of 16

Hybrid View

  1. #1
    Join Date
    Mar 2008
    Posts
    79

    Default Anyone know about this PIC?

    18LF452-I/P is what's written on it.
    I've searched online and all I can find out is that the LF is low power version

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    http://www.microchip.com/stellent/id...cName=en010296
    This is the basic data sheet link and part summery.
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Sep 2007
    Location
    USA, CA
    Posts
    271


    Did you find this post helpful? Yes | No

    Default

    The "LF" parts can run on slightly lower voltage. Some of the register settings may vary, such as the a/d TAD and Tosc settings. I know of at least one chip that these settings differ from the regular "F" parts. Read your ds if in doubt.

  4. #4
    Join Date
    Mar 2008
    Posts
    79


    Did you find this post helpful? Yes | No

    Default

    Thanls guys
    I was just curious as I found 3 samples of these that I had been sent a couple of years ago that I had forgotten I had and wanted to know how useable they are!
    So far I'm only used to using a 16f877a

  5. #5
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by karenhornby View Post
    So far I'm only used to using a 16f877a
    18F452 is almost a direct drop-in replacement for the '877. A few register changes here and there and you're set. It's all in the sheets...
    My sequence on the 40 pin DIPs has been 16F877A (8K) -> 18F452 (16K) -> 18F4620 (32K) -> 18F4685 (48K) as my code space requirements have increased. Same circuit, slightly different register configurations, and very small changes in PBP code.

  6. #6
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    If you had very small changes in the PBP code, what caused you code space requirements to increase?
    Dave
    Always wear safety glasses while programming.

  7. #7
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    If you had very small changes in the PBP code, what caused you code space requirements to increase?
    What I meant was, in addition to adding a bunch of new functions, the old functions needed very few code changes to accomodate the new functionality of each new PIC.

  8. #8
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    I thought so...I was just being a wise _ _ _ .
    Dave
    Always wear safety glasses while programming.

  9. #9
    Join Date
    Mar 2008
    Posts
    79


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by skimask View Post
    A few register changes here and there and you're set.
    Out of curiousity and to save me a lot of time if I use them, Any idea what register settings to change?

  10. #10
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by karenhornby View Post
    Out of curiousity and to save me a lot of time if I use them, Any idea what register settings to change?
    Not off the top of my head. ADC module changed, SSP module changed, UART changed a little bit. A few bit positions changed, a few names changed, and so on.
    Nothing concrete. Just depends what you're going to do with.
    If you don't do anything with the registers manually, then PBP will handle practically everything else for you and you won't see a difference.

  11. #11
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Wink

    Hi, Karen

    just some lines to see ... ( it's for a 18F452 ! )

    Code:
    '*****************************************************************************
    '*****************************************************************************
    'Config processeur
    '*****************************************************************************
    '
    
    '@  __CONFIG    _CONFIG1L, _WDT_OFF_1L & _WDTPS_128_1L
    @   __CONFIG    _CONFIG1H, _OSCS_OFF_1H & _XT_OSC_1H
    @	__CONFIG	_CONFIG2L, _BOR_OFF_2L & _BORV_27_2L & _PWRT_ON_2L
    @   __CONFIG    _CONFIG2H, _WDT_OFF_2H & _WDTPS_128_2H
    '@  __CONFIG    _CONFIG3L, _WDT_OFF_3L & _WDTPS_128_3L
    @   __CONFIG    _CONFIG3H, _CCP2MX_OFF_3H
    @   __CONFIG    _CONFIG4L, _STVR_OFF_4L & _LVP_OFF_4L & _DEBUG_OFF_4L
    '@  __CONFIG    _CONFIG4H, _WDT_ON_4H & _WDTPS_128_4H
    @   __CONFIG    _CONFIG5L, _CP0_OFF_5L & _CP1_OFF_5L & _CP2_OFF_5L & _CP3_OFF_5L
    @   __CONFIG    _CONFIG5H, _CPB_OFF_5H & _CPD_OFF_5H
    @   __CONFIG    _CONFIG6L, _WRT0_OFF_6L & _WRT1_OFF_6L & _WRT2_OFF_6L & _WRT3_OFF_6L
    @   __CONFIG    _CONFIG6H, _WRTC_OFF_6H & _WRTB_OFF_6H & _WRTD_OFF_6H 
    @   __CONFIG    _CONFIG7L, _EBTR0_OFF_7L & _EBTR1_OFF_7L & _EBTR2_OFF_7L & _EBTR3_OFF_7L
    @   __CONFIG    _CONFIG7H, _EBTRB_OFF_7H 
    
    '*****************************************************************************
    'Config TIMERs
    
    T0CON = %00000010	' 16Bits 1/8 prescaler, Horloge Système, OFF
    
    T1CON = %00001010	'1/1 prescaler, Quartz 32,768
    
    T3CON = %01110001	' ccp SUR TMR3,1/8 prescaler,Horloge système,ON
    
    '*****************************************************************************
    'Config CCP1 arret CCP2
    
    CCP1CON = %00000101	' Capture sur front montant 
    
    CCP2CON = %00000000	'inhibition module CCP2
    
    '*****************************************************************************
    'Inhibition SSP
    
    SSPCON1.5 = 0
    
    '*****************************************************************************
    'Config Interruptions
    
    INTCON  = %10000000
    INTCON2 = %11110000
    INTCON3 = %00000000
    
    PIE1    = %00000100
    PIE2    = %00000000
    
    IPR1    = %00000001
    IPR2	= %00000000
    
    RCON	= %10000000
    
    '*****************************************************************************
    'Config ADC
    '*****************************************************************************
    
    ADCON0 = %11000000
    ADCON1 = %10000011
    
    '*****************************************************************************
    '*****************************************************************************
    'Config et Prepositionnement E/S
    '*****************************************************************************
    
    PORTA	= %00000000
    PORTB 	= %00000100
    PORTC	= 0
    PORTD	= 0
    PORTE	= 0
    
    TRISA 	= %00111111
    TRISB	= %11100110
    TRISC	= %00000111
    TRISD	= %00000000
    TRISE	= %00000000
    '
    It's for a gadget that measures Hours of work ( total and split ), batt voltage, RPM, water and oil temp, and oil pressure.
    Also logs the maxima, alerts if thresolds reached, and shows programmed maintenance needed ...

    ...

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

Similar Threads

  1. SMS via pic
    By kenandere in forum GSM
    Replies: 15
    Last Post: - 10th March 2010, 10:00
  2. Replies: 67
    Last Post: - 8th December 2009, 02:27
  3. HSERIN & Interupts (aka controlling PIC programs from a remote PC)
    By HankMcSpank in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 17th June 2009, 14:46
  4. pic to pic ir link versus wired link : help please anyone
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 30th May 2008, 21:01
  5. Serial Pic to Pic using HSER
    By Chadhammer in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th March 2005, 23:14

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