Sign in

username:

password:



Not a member?

Search piclist



Search tips

Subscribe to piclist



piclist by Keywords

12F675 | 16F628 | 16F84 | 16f877 | 16F877A | 16F88 | 18F458 | ADC | AVR | Bootloader | CAN | CCS | CRC | EAGLE | EEPROM | ICD | ICSP | IDE | JDM | LED | Macros | Microchip | MPLAB | PCB-CAD | PIC10F | Pic12f675 | PIC16F84 | PIC16F84A | PIC16F877 | PIC18 | PIC18F452 | PicBasic | PICC | PICSTART | PWM | RS-485 | RS232 | SMT | SPI | UART | USART | USB | Wireless | Wisp628 | Xilinx

Ads

Discussion Groups

See Also

DSPFPGAElectronics

Discussion Groups | Piclist | MPLAB & USART


Advertise Here

A discussion group for the PICMicro microcontroller. Also called the Microchip PIC, this list is dedicated to the use and abuse of this fine, simple, microcontroller. Close to topic posts are welcome, ie. general electronics.

MPLAB & USART - jrem - Nov 8 15:25:00 2004


Will MPLAB emulate the USART correctly? i.e., if I have the asm set
up for USART, and if I make a transmission, does the TX bit flip on
and off in MPLAB as I step through the program? Also, does PIR1<4>
work correctly in the emulator? Or am I required to debug on
hardware?

I can't seem to find anything in the MPLAB users guide regarding
this. So right now I don't know if I'm headed in the right direction.

Thanks a million . . . John.




______________________________
Stellaris® MCU Family: New Parts, New Package, New Price.


(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )


Re: MPLAB & USART - Phil - Nov 8 17:28:00 2004


--- In , "jrem" <jrem123@y...> wrote:
>
> Will MPLAB emulate the USART correctly? i.e., if I have the asm set
> up for USART, and if I make a transmission, does the TX bit flip on
> and off in MPLAB as I step through the program? Also, does PIR1<4>
> work correctly in the emulator? Or am I required to debug on
> hardware?
>
> I can't seem to find anything in the MPLAB users guide regarding
> this. So right now I don't know if I'm headed in the right direction.
>
> Thanks a million . . . John.

open up mplab go to help/topics/mplabsim/limitations. You'll find
that it doesn't support serial I/O emulation.





(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )

Re: MPLAB & USART - Eirik Karlsen - Nov 8 17:29:00 2004

Have a look at Debugger/Settings/Limitations

jrem wrote:

 
Will MPLAB emulate the USART correctly?  i.e., if I have the asm set
up for USART, and if I make a transmission, does the TX bit flip on
and off in MPLAB as I step through the program?  Also, does PIR1<4>
work correctly in the emulator?  Or am I required to debug on
hardware?

I can't seem to find anything in the MPLAB users guide regarding
this. So right now I don't know if I'm headed in the right direction.

Thanks a million . . .  John.
 

--
*******************************************
VISIT MY HOME PAGE:
<http://home.online.no/~eikarlse/index.htm>
LAST UPDATED: 23/08/2003
*******************************************
Regards
Eirik Karlsen
 



(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )

Re: MPLAB & USART - Peter van Hoof - Nov 8 19:17:00 2004

If you want a simulator that does this ( and lots more
like a terminal you can hang on a simulated pic pin to
see what the uart is doing) go to
http://www.oshonsoft.com and download pic simulator
ide , it's great imho you get a generous trial period
but if you are as thrilled as i was you'll shell out
the couple bucks for the software the same day.

I'm not associated with them , just a happy user of
the software

Kind regards
Peter van Hoof --- jrem <> wrote: > Will MPLAB emulate the USART correctly? i.e., if I
> have the asm set
> up for USART, and if I make a transmission, does the
> TX bit flip on
> and off in MPLAB as I step through the program?
> Also, does PIR1<4>
> work correctly in the emulator? Or am I required to
> debug on
> hardware?
>
> I can't seem to find anything in the MPLAB users
> guide regarding
> this. So right now I don't know if I'm headed in the
> right direction.
>
> Thanks a million . . . John.


______________________________
Stellaris® MCU Family: New Parts, New Package, New Price.


(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )

Re: MPLAB & USART - Paul Snuggs - Nov 9 7:30:00 2004

Try the FED IDE - great simulator at www.fored.co.uk
Paul. ----- Original Message -----
From: "Peter van Hoof" <>
To: <>
Sent: Tuesday, November 09, 2004 12:17 AM
Subject: Re: [piclist] MPLAB & USART >
> If you want a simulator that does this ( and lots more
> like a terminal you can hang on a simulated pic pin to
> see what the uart is doing) go to
> http://www.oshonsoft.com and download pic simulator
> ide , it's great imho you get a generous trial period
> but if you are as thrilled as i was you'll shell out
> the couple bucks for the software the same day.
>
> I'm not associated with them , just a happy user of
> the software
>
> Kind regards
> Peter van Hoof > --- jrem <> wrote:
>
>>
>> Will MPLAB emulate the USART correctly? i.e., if I
>> have the asm set
>> up for USART, and if I make a transmission, does the
>> TX bit flip on
>> and off in MPLAB as I step through the program?
>> Also, does PIR1<4>
>> work correctly in the emulator? Or am I required to
>> debug on
>> hardware?
>>
>> I can't seem to find anything in the MPLAB users
>> guide regarding
>> this. So right now I don't know if I'm headed in the
>> right direction.
>>
>> Thanks a million . . . John.
>>
>>
>>
> >
>
> to unsubscribe, go to http://www.yahoogroups.com and follow the
> instructions
> Yahoo! Groups Links



______________________________
Stellaris® MCU Family: New Parts, New Package, New Price.


(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )

Help for start PIC18 series programming language. - Hasan Arslan - Nov 9 9:17:00 2004

Hi,

I'm use the PIC12F and PIC16F series MCU i will be upgrate to PIC18 Seres.

I have make sample program with 18F452. But I have a problem whit OSC select.

My program don't work if select XT,HS or HS PLL mode. It work only in RC02RA6 mod but i don't understand why the program not work.

I give a example for this progam, if anybody do program for PIC18 series whit ASM help me. Or give me sample program for 18f Series for understand how i can start it.

 

;********************************************************************

list p=18F452
#include p18F452.inc

;Program Configuration Registers

;*******??????????????????????????????????????????????????**********

; IF I HERE OPEN THIS FUSE THE PROGRAM DON'T RUN.   WHY ?????

; __CONFIG _CONFIG1H, _OSCS_OFF_1H & _EC_OSC_1H

;*******??????????????????????????????????????????????????**********__CONFIG _CONFIG2L, _BOR_OFF_2L & _PWRT_ON_2L
; __CONFIG _CONFIG2H, _WDT_OFF_2H
; __CONFIG _CONFIG3H, _CCP2MX_OFF_3H
__CONFIG _CONFIG4L, _STVR_OFF_4L & _LVP_OFF_4L & _DEBUG_OFF_4L
__CONFIG _CONFIG5L, _CP0_OFF_5L & _CP1_OFF_5L & _CP2_OFF_5L & _CP3_OFF_5L
; __CONFIG _CONFIG5H, _CPB_OFF_5H & _CPD_OFF_5H
__CONFIG _CONFIG6L, _WRT0_OFF_6L & _WRT1_OFF_6L & _WRT2_OFF_6L & _WRT3_OFF_6L
; __CONFIG _CONFIG6H, _WRTC_OFF_6H & _WRTB_OFF_6H & _WRTD_OFF_6H
__CONFIG _CONFIG7L, _EBTR0_OFF_7L & _EBTR1_OFF_7L & _EBTR2_OFF_7L & _EBTR3_OFF_7L
; __CONFIG _CONFIG7H, _EBTRB_OFF_7Hcblock H'00'

delay1
delay2

endc
ORG 0X000

NOP
goto STARTSTART

MOVLW b'11111111'
MOVWF PORTB ;Set PortB as FOR INPUT

MOVLW B'00000000'
MOVWF PORTC ;SET PortC

MOVLW B'00000000'
MOVWF PORTD ;SET PortDMOVLW B'0111' ;RA ve RE PORTUNU DIJITALE CEVIRIR.
MOVWF ADCON1 ;

clrf TRISA ;Set PortC as output

clrf TRISC ;Set PortB as output

MOVLW b'11110011'
MOVWF TRISB ;Set PortB as FOR INPUT

MOVLW B'00000000'
MOVWF TRISD ;Set PortD as FOR OUTPUT

clrf TRISE ;Set PortC as output
KONTROL

CALL DELAY50

btfss PORTB,0
GOTO LED_AC
GOTO LED_KAPALED_AC

BSF PORTB,3

nop
nop
nop

BCF PORTB,2

GOTO KONTROL

LED_KAPA

BCF PORTB,3

nop
nop
nop

BSF PORTB,2

GOTO KONTROLDELAY50

clrf delay1 ; /R clear DelayA to 0
movlw 10h ; set DelayB to 40h
movwf delay2

Wait5

decfsz delay1 ; subtract 1 from DelayA
goto Wait5 ; if not 0, goto Wait1
decfsz delay2 ; subtract 1 from DelayB
goto Wait5 ; if not 0, goto Wait1
return ; finished the delayend

;********************************************************************


Gesendet von Yahoo! Mail - Jetzt mit 100MB kostenlosem Speicher


______________________________
Stellaris® MCU Family: New Parts, New Package, New Price.


(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )

RE: Help for start PIC18 series programming language. - Mauricio Jancic - Nov 9 9:20:00 2004

try not using in line configuration bit definition. Comment everything out and set the configuration bits trough the interface.
 
Mauricio Jancic
Janso Desarrollos
Microchip Consultant Program Member
(54) 11-4542-3519
i...@janso.com.ar
www.janso.com.ar
 


From: Hasan Arslan [mailto:h...@yahoo.de]
Sent: Tuesday, November 09, 2004 11:18 AM
To: p...@yahoogroups.com
Subject: [piclist] Help for start PIC18 series programming language.

Hi,

I'm use the PIC12F and PIC16F series MCU i will be upgrate to PIC18 Seres.

I have make sample program with 18F452. But I have a problem whit OSC select.

My program don't work if select XT,HS or HS PLL mode. It work only in RC02RA6 mod but i don't understand why the program not work.

I give a example for this progam, if anybody do program for PIC18 series whit ASM help me. Or give me sample program for 18f Series for understand how i can start it.

 

;********************************************************************

list p=18F452
#include p18F452.inc

;Program Configuration Registers

;*******??????????????????????????????????????????????????**********

; IF I HERE OPEN THIS FUSE THE PROGRAM DON'T RUN.   WHY ?????

; __CONFIG _CONFIG1H, _OSCS_OFF_1H & _EC_OSC_1H

;*******??????????????????????????????????????????????????**********__CONFIG _CONFIG2L, _BOR_OFF_2L & _PWRT_ON_2L
; __CONFIG _CONFIG2H, _WDT_OFF_2H
; __CONFIG _CONFIG3H, _CCP2MX_OFF_3H
__CONFIG _CONFIG4L, _STVR_OFF_4L & _LVP_OFF_4L & _DEBUG_OFF_4L
__CONFIG _CONFIG5L, _CP0_OFF_5L & _CP1_OFF_5L & _CP2_OFF_5L & _CP3_OFF_5L
; __CONFIG _CONFIG5H, _CPB_OFF_5H & _CPD_OFF_5H
__CONFIG _CONFIG6L, _WRT0_OFF_6L & _WRT1_OFF_6L & _WRT2_OFF_6L & _WRT3_OFF_6L
; __CONFIG _CONFIG6H, _WRTC_OFF_6H & _WRTB_OFF_6H & _WRTD_OFF_6H
__CONFIG _CONFIG7L, _EBTR0_OFF_7L & _EBTR1_OFF_7L & _EBTR2_OFF_7L & _EBTR3_OFF_7L
; __CONFIG _CONFIG7H, _EBTRB_OFF_7Hcblock H'00'

delay1
delay2

endc
ORG 0X000

NOP
goto STARTSTART

MOVLW b'11111111'
MOVWF PORTB ;Set PortB as FOR INPUT

MOVLW B'00000000'
MOVWF PORTC ;SET PortC

MOVLW B'00000000'
MOVWF PORTD ;SET PortDMOVLW B'0111' ;RA ve RE PORTUNU DIJITALE CEVIRIR.
MOVWF ADCON1 ;

clrf TRISA ;Set PortC as output

clrf TRISC ;Set PortB as output

MOVLW b'11110011'
MOVWF TRISB ;Set PortB as FOR INPUT

MOVLW B'00000000'
MOVWF TRISD ;Set PortD as FOR OUTPUT

clrf TRISE ;Set PortC as output
KONTROL

CALL DELAY50

btfss PORTB,0
GOTO LED_AC
GOTO LED_KAPALED_AC

BSF PORTB,3

nop
nop
nop

BCF PORTB,2

GOTO KONTROL

LED_KAPA

BCF PORTB,3

nop
nop
nop

BSF PORTB,2

GOTO KONTROLDELAY50

clrf delay1 ; /R clear DelayA to 0
movlw 10h ; set DelayB to 40h
movwf delay2

Wait5

decfsz delay1 ; subtract 1 from DelayA
goto Wait5 ; if not 0, goto Wait1
decfsz delay2 ; subtract 1 from DelayB
goto Wait5 ; if not 0, goto Wait1
return ; finished the delayend

;********************************************************************


Gesendet von Yahoo! Mail - Jetzt mit 100MB kostenlosem Speicher

to unsubscribe, go to http://www.yahoogroups.com and follow the instructions

--
Internal Virus Database is out-of-date.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.279 / Virus Database: 264.10.2 - Release Date: 10/8/2004





(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )