Extreme Noobie question 12F675


Closed Thread
Results 1 to 12 of 12

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by F1CHF View Post
    Hello
    First, I have made a search on that PIC but I didn't find any answer on the following questions :

    1/ Am I right if I say that the VSS and VDD pins are not in the same way than the well known 16F84 ?
    we must make an adaptator to use a JDM programmer and having RB6 (pin 12) and RB7 (pin 13) pins on pin 7 and 6 on the 12F675 (assuming that we reverse VSS and VDD) and take pin 4 of the 16F84 to pin 4 on the 12F675 ! hope it is clear !
    Correct ! Look at the data sheet for the proper connections, 16f84 has some family members who's power connections are the same . . . 16f628 series . . . others are different 16F690 for example.
    Quote Originally Posted by F1CHF View Post
    2/ we must read first the 12F675 to store oscal and bandgap datas ?
    Depends upon your programmer, the PICKit2 offers you a choice at programming time whether or not to overwrite.
    Quote Originally Posted by F1CHF View Post
    3/ we must play with CMCOM and Ansel command to have Digital port instead of analog status a power on time. (same story than for 16F628 or 16F88)
    Correct ! You need to consult the data sheets for each PIC you are using. You (CAN) open the inc file for the chip you are using and read which registers appear there, you will find those files in the MPASM Suite's root directory.
    4/ we must forget PORTA and use GPIO to declare activ pins ?
    Usualy the 8 pin devices use GPIO, I think there is one that uses PortA
    5/ we must modify HEX file to feed oscal and bangap datas before programming ?
    I never have done this, I am sure it is possible, but not necessary unless you are hacking someone's hex file to fit a different chip.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  2. #2
    Join Date
    Sep 2009
    Posts
    4


    Did you find this post helpful? Yes | No

    Angry Same problem

    I'm having the same problem with a 12F675 reading a pin
    I'm using PicBasic, Microcode studio and MeL:abs Programmer , latest updates

    I've been trying for a week with different combinations of peeks, pokes and button commands. It runs fine, but ignores my input to shorten the run loop.
    Here is my latest try using he button command with peek and pokes commented out.

    '************************************************* ***************
    '* Name : Test.BAS *
    '* Author : Gene Choin *
    '* Notice : Copyright (c) 2009 *
    '* : All Rights Reserved *
    '************************************************* ***************
    '* Date : 9/20/2009 2:13 *
    '* Version : 1.0 *
    '* Notes : TEST for 12F629 Input *
    '* *
    '************************************************* ***************
    'TEST program for reading input on pin 1 (Physical pin 6 on 12F629 = GPIO1).
    'pin1 has a 24K pull up resistor to 5V and switch to ground.
    'If pin1 = 0, flash pin 4 and retest.
    'If pin1 = 1. flash pin 5 also and then GOTO TEST

    Symbol CMCON = $1f 'Alias $1f to CMCON
    Poke CMCON, 7 'makes all digital I/O
    'Variables

    'Ports
    Output 0 'Make GP0 the Strike output
    Input 1 'Make GP1 the Run Sense in
    Output 2 'Make GP2 the Filament Drive out
    Input 3 'Make GP3 the MCLR in
    Output 4 'Make GP4 the START LED out
    Output 5 'Make GP5 the RUN LED out


    'Begin Program
    TEST:
    pulsout 4,2000 'Marker - Pin 4 for 4 sec
    High 4
    Pause 4000
    Low 4
    Let B0 = 1 'clear B0
    BUTTON 1,0,0,0,B0,0,Fil_hi 'If switch goes low, goto FilHi- skip High 5
    High 5 'Marker - Pin 5 for 4 sec
    pause 4000
    Low 5

    Fil_HI:
    High 2
    Pause 4000 'Marker - Pin 2 for 4 sec
    Low 2
    GOTO TEST
    end

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


    Did you find this post helpful? Yes | No

    Default

    Code:
    Symbol CMCON = $1f 'Alias $1f to CMCON
    CMCON is at address $19

    And if you are using a 12F675, you'll also need to set ANSEL($9F) to 0.
    <br>
    DT

Similar Threads

  1. Still 12F675 question
    By F1CHF in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 7th August 2009, 21:09
  2. Noobie Question
    By mel4853 in forum mel PIC BASIC
    Replies: 19
    Last Post: - 2nd July 2006, 12:45
  3. 12F675, MPLAB programming question
    By EASY in forum General
    Replies: 0
    Last Post: - 2nd April 2006, 19:28
  4. 12f675 programming question
    By puggy in forum General
    Replies: 3
    Last Post: - 30th November 2004, 23:34
  5. 12f675 internal osc question.....
    By Gabe@SPdFtsh in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 6th January 2004, 06:33

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