CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Parallel Master Port (PMP) communication with PIC18F67J50

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
cassis



Joined: 14 Oct 2010
Posts: 1

View user's profile Send private message Send e-mail

Parallel Master Port (PMP) communication with PIC18F67J50
PostPosted: Thu Oct 14, 2010 4:44 pm     Reply with quote

This is my assebly programm for PMP module.
The PMDIN1L Reg is in the subroutine, but there isn't bus activity for write on the board.
All PMP port pins (PMA 8 - 13, PMD 0- 7, PMCS1, PMCS2, PMWR, etc.) are logical zero.
where is mistake in program?



LIST P=18F67J50
#include <P18f67J50.INC>

CONFIG DEBUG = OFF ;Background debugger disabled; RB6 and RB7 configured as general purpose I/O pins
CONFIG XINST = OFF ;Instruction set extension and Indexed Addressing mode disabled
CONFIG STVREN = OFF ;Reset on stack overflow/underflow disabled
CONFIG PLLDIV = 1 ;No prescale (4 MHz oscillator input drives PLL directly)
CONFIG WDTEN = OFF ;WDT disabled (control is placed on SWDTEN bit)
CONFIG CP0 = OFF ;Program memory is not code-protected
CONFIG CPUDIV = OSC1 ;[No CPU System clock divide]
CONFIG IESO = OFF ;Two-Speed Start-up disabled
CONFIG FCMEN = OFF ;Fail-Safe Clock Monitor disabled
CONFIG FOSC = HSPLL ;HS oscillator, PLL enabled, HSPLL used by USB
CONFIG WDTPS = 1 ;1:1
CONFIG MSSPMSK = MSK5 ;5 Bit address masking
CONFIG CCP2MX = DEFAULT ;ECCP2/P2A is multiplexed with RC1

#define 0 access
#define 1 banked

org 50
goto start

start:
movlb d'15'

movlw B'10001011'
movwf PMCONH,banked

movlw B'01111111'
movwf PMCONL,banked

movlw B'00000010'
movwf PMMODEH,banked

movlw b'00000000'
movwf PMMODEL,banked

movlw b'11111111'
movwf PMEH,banked

movlw b'00000011'
movwf PMEL,banked

movlw b'10010111'
movwf PMADDRH,access

movlw b'11111111'
movwf PMADDRL,access



PMPwrite:
btfsc PMMODEH,BUSY,banked
goto PMPwrite
movlw b'11011011'
movwf PMDIN1L,banked ;write data to PMP bus
goto PMPwrite

end
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Oct 14, 2010 5:53 pm     Reply with quote

You're on the wrong forum. This is the CCS forum for their C compilers.
You need the Microchip forum:
http://www.microchip.com/forums/m467125.aspx
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group