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 support@ccsinfo.com

pic24 and the pmp and eds

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



Joined: 16 Jan 2014
Posts: 24

View user's profile Send private message

pic24 and the pmp and eds
PostPosted: Tue Aug 18, 2015 6:45 am     Reply with quote

hi everyone

i am using the pic24fj256gb210 and the com20020i 3.3v arcnet chip.
i have previously been bit banging the signals but even with the pll on it has proved to be a bit slow.

so now i plan to interconnect the two with the pmp and use the eds so that i can access the chip with the cpu mov instructions.

it is however my first time with the pmp, and i was hoping that any members with experience of the pmp would comment on my setup.

the com20020 is essentially a 8 byte memory device.
having d0..d7 WR RD CS A0 A1 A2 reset INT pins

i have

data lines d0 .. d7 of the com20020 connected to port E0..E7
A1 connected to pin b14 ( PMA1 )
A0 connected to pin b15 (PMA0)
A2 connected to pin g9 (PMA2)
CS connected to pin E8 (PMCS1)
WR connected to pin d4 (PMWR)
RD connected to pin d5 (PMRD)

reset connected to pin e9
INT connected to pin d7


it seems fairly straight forward, but i am asking in case i have made a stupid mistake which is not unheard of.

thankyou.
Ttelmah



Joined: 11 Mar 2010
Posts: 19338

View user's profile Send private message

PostPosted: Tue Aug 18, 2015 7:38 am     Reply with quote

You may need to look carefully at the timings. The read/write to address pointer low register, following accessing a data register, needs an extra delay. You may need to add this yourself in software.
smee



Joined: 16 Jan 2014
Posts: 24

View user's profile Send private message

PostPosted: Tue Aug 18, 2015 8:36 am     Reply with quote

Can i add this delay through the no of wait states setting of the pmp?

I was hoping to use the mov and repeat instructions to access the com200 as i will be running the network at either 2.5mbs or 5mbs. And i did want the access to the chip to be completely automatic, and at the cpu's native speed.
Ttelmah



Joined: 11 Mar 2010
Posts: 19338

View user's profile Send private message

PostPosted: Tue Aug 18, 2015 1:41 pm     Reply with quote

I'd suggest, that successive reads or writes, which don't need this delay, could be done as you describe, but it'd probably be easier to do the 'setup' accesses with extra delays added directly. Otherwise you would delay all the other accesses, which seems a little pointless.
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