pps (un)lock_iolock
pps (un)lock_iolock
i have the impression that in the current implementation ( mp dsPIC pro compiler) of the peripheral pin select library the unlock_iolock and the lock_iolock are part of the pps_mapping function. The inconvenience is that we cannot use the IOL1WAYconfigurationbit protection .
Au royaume des aveugles, les borgnes sont rois.
- slavisa.zlatanovic
- mikroElektronika team
- Posts: 1321
- Joined: 07 Apr 2009 09:39
Re: pps (un)lock_iolock
ok, if i would have seen that post i could have continued there, the main objection agains including them in the library is that you cannot use the configuration-level protection against spurious remapping of pins. Before ever there was a ME-pps-library i used my own ( based upon yo2lio 's work) and i still can use that. The direct writing to the remapping registers is probably the most efficient option.
Au royaume des aveugles, les borgnes sont rois.
- slavisa.zlatanovic
- mikroElektronika team
- Posts: 1321
- Joined: 07 Apr 2009 09:39
Re: pps (un)lock_iolock
Hi!
I'm not sure that I understood you properly.
IOL1WAY Configuration bit must be cleared in order to use the PPS_Mapping successively.
"The state of the IOLOCK bit can only be changed once an unlocking sequence has been executed. In
addition, if the IOL1WAY Configuration bit is ‘1’, once the IOLOCK bit is set, it cannot be cleared."
I'm not sure that I understood you properly.
Please, explain it in more details....the unlock_iolock and the lock_iolock are part of the pps_mapping function. The inconvenience is that we cannot use the IOL1WAY configuration bit protection.
IOL1WAY Configuration bit must be cleared in order to use the PPS_Mapping successively.
"The state of the IOLOCK bit can only be changed once an unlocking sequence has been executed. In
addition, if the IOL1WAY Configuration bit is ‘1’, once the IOLOCK bit is set, it cannot be cleared."
Best regards
Slavisa
Slavisa
Re: pps (un)lock_iolock
exactly, as demonstration of the current situation look at http://www.mikroe.com/forum/viewtopic.p ... 45#p134345IOL1WAY Configuration bit must be cleared in order to use the PPS_Mapping successively.
"The state of the IOLOCK bit can only be changed once an unlocking sequence has been executed. In
addition, if the IOL1WAY Configuration bit is ‘1’, once the IOLOCK bit is set, it cannot be cleared."
Au royaume des aveugles, les borgnes sont rois.
Re: pps (un)lock_iolock
good post!
I widely trace the cooperation of monogamous services. They privately edit my paper. I am unquestionably astonished, because I wouldn't inscribe my time widely and I don’t secret about online correcting my drafts.