pic16F88 problems


Closed Thread
Results 1 to 12 of 12

Hybrid View

  1. #1
    sskeet's Avatar
    sskeet Guest


    Did you find this post helpful? Yes | No

    Smile

    Damn, can I delete this thread? lol

    My 5V regulator on the board was toast...I replaced it and voila

    I really appreciate the responses though!

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


    Did you find this post helpful? Yes | No

    Default

    **** happens
    Steve

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

  3. #3
    Join Date
    Nov 2007
    Posts
    7


    Did you find this post helpful? Yes | No

    Question pic16f88 pwm

    hi guys can any one help me with assembly code for dimming an led using the pic16f88.i have read the datasheet and and i have come up with code but it doesnt work.

    can anyone please tell me whats wrong with with this code.

    list p=16f88
    INCLUDE "p16f88.inc"


    _;****Set up the Constants****

    STATUS equ 03h
    TRISA equ 85h
    TRISB equ 86h
    PORTA equ 05h
    PORTB equ 06h
    COUNT2 equ 21h
    COUNT1 equ 20h
    ANSEL equ 9Bh
    OSCCON equ 8Fh
    CCP1CON equ 17h
    T2CON equ 12h
    TMR2 equ 11h
    CCPR1L equ 15h
    PR2 equ 92h
    PIR1 equ 0Ch
    PIE1 equ 8Ch


    movlw B'00000000' ; 8Mhz 4Mhz = B'01100000'31.25khz
    bsf STATUS, 5
    movwf OSCCON
    nop
    nop
    nop
    bcf STATUS, 5
    movlw b'00111100'
    movwf CCP1CON

    bsf 03h,5
    movlw 00h
    movwf TRISA

    movlw 00h
    movwf TRISB

    movlw 00h
    movwf ANSEL

    movlw b'11111111'
    movwf PR2

    bcf 03h,5
    movlw b'00001111'
    movwf TMR2



    Start
    movlw b'00001111'
    movwf CCPR1L
    Loop1
    decfsz CCPR1L
    goto Loop1
    goto Start
    end

Similar Threads

  1. Problems with 1-Wire DS2438 and PIC16F88
    By HeadCase in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 4th February 2011, 19:51
  2. RX TX modules - intermitent communication
    By ruijc in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 11th June 2009, 01:13
  3. Replies: 8
    Last Post: - 7th December 2006, 16:42
  4. PIC16F88 problem with TOGGLE command?
    By russman613 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 18th September 2006, 00:31
  5. Problems getting started
    By damiko in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 10th July 2005, 16:53

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