renzovarela
Joined: 07 Oct 2015 Posts: 1
|
PMP in dsPIC33FJ128MC802 |
Posted: Wed Oct 07, 2015 4:45 pm |
|
|
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 or
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 |
|