The problem of PDL Example in remote mode (NEC)

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Hi Sir, 

   

  I use the example code rc in PDL,with MB9AF314L(4MHz crystal),it cannot get any interrupt when a remote contrller(in NEC protocol) key pressed .

   

NOTE:

   

connect the 'CEC0 pin, GND and VCC'with the infrared receive board
press the 'TV remote control unit' key, and watch the IO terminal.------The receivepn will get the key waveform

   

 

   

Here is the receive waveform from receive pin when a remote key is pressed

   

 

   

Can you help me?

   

Best Regards

   

Raymond,

0 Likes
1 Solution
bharadhwajas_91
Employee
Employee
First like received First like given

Hi,

   


As per datasheet of MB9A310A Series and 002 04843_FM3_PERIPHERAL_MANUAL_Communication_Macro_Part_TRM about the remote control issue. The part number (type-1) you are using is not in the list supporting remote control function, so that means rc function can not realized with your current device.

View solution in original post

0 Likes
3 Replies
Anonymous
Not applicable

the blow is the time setting

   

#define RC_DIV      APB_CLOCK/16000           ///< set RC frequency about 16KHz
#define RC_FREQ     16000
#define STARTBITTIME    9000//4.4mSec
#define STARTBITWIDTH   (STARTBITTIME/1000*RC_FREQ)/1000
#define REPEATTIME    4500//2.2mSec
#define REPEATWIDTH   (REPEATTIME*RC_FREQ)/1000/1000
#define MINPULSETIME   560//560uSec
#define MINPULSEWIDTH   (MINPULSETIME*RC_FREQ)/1000/1000
#define THRESHOLDTIME   1600//1.6mSec
#define THRESHOLDWITH   (THRESHOLDTIME*RC_FREQ)/1000/1000

0 Likes
Anonymous
Not applicable

The community is still actived?

   

Any reply?

0 Likes
bharadhwajas_91
Employee
Employee
First like received First like given

Hi,

   


As per datasheet of MB9A310A Series and 002 04843_FM3_PERIPHERAL_MANUAL_Communication_Macro_Part_TRM about the remote control issue. The part number (type-1) you are using is not in the list supporting remote control function, so that means rc function can not realized with your current device.

0 Likes