Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 4923

Problem with program using pic 16F690

$
0
0
Hi, I have a question that I would like if someone can help me to answer it.

I am using a pic 16F690, and when I use the following program:

Code (Microchip Assembler):
  1.  
  2. #include <p16F690.inc>
  3.     __config (_INTRC_OSC_NOCLKOUT & _WDT_OFF & _PWRTE_OFF & _MCLRE_OFF & _CP_OFF & _BOR_OFF & _IESO_OFF & _FCMEN_OFF)
  4.  
  5. Start:
  6.      bsf   STATUS,RP0
  7.      bcf   TRISC,0x1
  8.      bcf   TRISC,0x3
  9.      bcf   STATUS,RP0
  10.      bsf   PORTC,0x1  ;turn on LED C0
  11.      bsf   PORTC,0x3  ;turn on LED C0
  12.    
  13.      End
  14.  

I am...

Problem with program using pic 16F690

Viewing all articles
Browse latest Browse all 4923

Trending Articles