Searching \ for 'Simulating P16F87x USART on MPLAB' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/ios.htm?key=usart
Search entire site for: 'Simulating P16F87x USART on MPLAB'.

Truncated match.
PICList Thread
'Simulating P16F87x USART on MPLAB'
2000\05\14@231412 by Dean Biddle

flavicon
picon face
Hi,

Is it possible to simulate a P16F87x USART receive interrupt (i.e. set the
RCIF flag) using a Debug stimulus (Debug>Simulator Stimulus>....) under
MPLAB for Windows ver. 4.0.  If so, should asynchronous, clock or register
stimulus be used when the following simple code is run?


       ORG 0X000
RESET_V         GOTO    START
       ORG     0X004
RX_INT_V        GOTO    $
START   BCF     STATUS,RP0
       CLRF    PORTC
       BSF     STATUS, RP0
       MOVLW   B'11000000'
       MOVWF   TRISC&0X07F
       MOVLW   D'103'
       MOVWF   SPBRG&0X07F
       MOVLW   0X40
       MOVWF   TXSTA&0X07F
       BSF     PIE1&0X07F,TXIE
       BSF     PIE1&0X07F,RCIE
       BSF     INTCON,GIE
       BSF     INTCON,PEIE
       BCF     STATUS,RP0
       MOVLW   0X90
       MOVWF   RCSTA
       GOTO    $
       END

2000\05\15@001357 by Tony Nixon

flavicon
picon face
Dean Biddle wrote:
>
> Hi,
>
> Is it possible to simulate a P16F87x USART receive interrupt (i.e. set the
> RCIF flag) using a Debug stimulus (Debug>Simulator Stimulus>....) under
> MPLAB for Windows ver. 4.0.  If so, should asynchronous, clock or register
> stimulus be used when the following simple code is run?

To the best of my knowledge, MPLAB does not support serial comms on V4
and on V5.

--
Best regards

Tony

http://www.picnpoke.com
spam_OUTsalesTakeThisOuTspampicnpoke.com

2000\05\15@004301 by Ben Langhals

flavicon
face
I think the only form of serial communication simulated is if you have the
MSSP set to do SPI communication.  That seems to work, but I don't think any
other serial communication (other ways to configure the MSSP or USART) will
work.

Ben


{Original Message removed}

2000\05\15@201348 by Don Campbell

flavicon
face
Dean Biddle wrote:
>
> Hi,
>
> Is it possible to simulate a P16F87x USART receive interrupt (i.e. set the
> RCIF flag) using a Debug stimulus (Debug>Simulator Stimulus>....) under
> MPLAB for Windows ver. 4.0.  If so, should asynchronous, clock or register
> stimulus be used when the following simple code is run?
>
<snip>

What I did was use the "modify" option to change the contents of RCREG
and set PIR1<RCIF> whenever I wanted to simulate the reception of data.
Note that you have to manually clear the RCIF flag as the simulator DOES
NOT simulate the UART itself...(this brought me much frustration last
week)

hope this helps,
D

More... (looser matching)
- Last day of these posts
- In 2000 , 2001 only
- Today
- New search...