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

PMP in dsPIC33FJ128MC802

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



Joined: 07 Oct 2015
Posts: 1

View user's profile Send private message

PMP in dsPIC33FJ128MC802
PostPosted: Wed Oct 07, 2015 4:45 pm     Reply with quote

Hi everbody

I made a simple program to transmit data to the PSP of the PIC18F4520 without the interruption function. it`s work.

But i need more speed of transmission, then I changed ro the dsPIC33FJ128MC802. The problem is this dsPIC have a PMP, and as I read, PSP can function as PSP but I don't know how.

i have use
Code:
setup_psp()
or
Code:
setup_pmp()

and what are the parameters of the function that I use

This is my code, but I know that it does not work
Code:

#include <33FJ128GP802.h>
#fuses none
//#fuses NOWDT,NOPROTECT
#use delay(clock=20000000)

void main(){
   int data=1;
   setup_psp( PAR_PSP_AUTO_INC |PAR_NO_INTR_STALL_ACTIVATED|PAR_STOP_IN_IDLE,0x00FF);

   while(True)
   {

   psp_write(data);
   data++;
   delay_ms(100);
   }
}


PLEASE HELP ME!
THANKS
BYE
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