16f628a to 16f88 or 16f819


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Jun 2006
    Location
    Greece
    Posts
    302

    Default 16f628a to 16f88 or 16f819

    need to change something in the code;

  2. #2
    Join Date
    Jun 2006
    Location
    Greece
    Posts
    302


    Did you find this post helpful? Yes | No

    Default

    need to change something in the code which i have , from 16f628a to 16f88 or 16f819.

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


    Did you find this post helpful? Yes | No

    Default

    we need more information... the existing code and PIC... and the target PIC #
    Steve

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

  4. #4
    Join Date
    Jun 2006
    Location
    Greece
    Posts
    302


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mister_e
    we need more information... the existing code and PIC... and the target PIC #
    I have the code for the pic16f628a and work.
    I want to replace the 16f628a with 16f88 or 16f819
    Code:
    	DEFINE LCD_DREG	PORTB	    'Selection of the port B
    	DEFINE LCD_DBIT 0	    'Selection one RB0 with RB3
    	DEFINE LCD_RSREG PORTA	    'RS on port A
    	DEFINE LCD_RSBIT 2	    'RS on RA2
    	DEFINE LCD_EREG	PORTA        'E on port A
    	DEFINE LCD_EBIT 3	    'E on RA3
    	DEFINE LCD_BITS 4	    'Mode 4 bits
    	DEFINE LCD_LINES 2	    '2 lines
    
    	DEFINE I2C_SCLOUT 1
    	
    	PAUSE 500
    	
    ' ** DEFINITION OF THE ENTREES - EXITS
    
    ' Exits I2C
    
    	SCL var PORTA.1                             ' SCL on RB1 (pine 18)
    	SDA	var	PORTA.0		' SDA on RB0 (pin 17)
    
    ' Boutons
    
    	UP	    var	PORTB.6		'increase the frequency (on RB6)
    	DOWN	var	PORTB.7		'decrease the frequency (on RB7)
    	CH_PAS	var	PORTB.5		'Change the step of synth (on RB5) 
    
    	Input	UP			'Up and Down are entries
    	Input	DOWN
    	Input	CH_PAS

  5. #5
    Join Date
    Jun 2005
    Location
    Wisconsin
    Posts
    382


    Did you find this post helpful? Yes | No

    Default

    Add the following to the top of the program:

    CMCON=%00000111 ' Disable Comparators
    ANSEL=%00000000 ' force RB6 and RB7 digital (16F88 specific)

  6. #6
    Join Date
    Jun 2006
    Location
    Greece
    Posts
    302


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by DynamoBen
    Add the following to the top of the program:

    CMCON=%00000111 ' Disable Comparators
    ANSEL=%00000000 ' force RB6 and RB7 digital (16F88 specific)
    Already have : CMCON = 7 ' PortA = digital I/O

Similar Threads

  1. Code works on 16F84A but not on 16F88?
    By pharaohamps in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 6th November 2009, 18:29
  2. 16F819 syntax ERROR
    By k-hirayama in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 5th February 2008, 00:40
  3. 16F88 is not the dream device I thought it was.
    By keithdoxey in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 25th October 2005, 21:19
  4. 16f88 help
    By ccsparky in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 3rd July 2004, 17:50
  5. 4 line LCD with 16F88
    By anj in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 7th February 2004, 09:06

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