You are here

The problem of PDL Example in remote mode (NEC) | Cypress Semiconductor

The problem of PDL Example in remote mode (NEC)

Summary: 3 Replies, Latest post by bhwj on 09 Mar 2017 01:56 AM PST
Verified Answers: 1
Last post
Log in to post new comments.
raymondhuang5_1451421's picture
User
3 posts

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,

 

raymondhuang5_1451421's picture
User
3 posts

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

 

raymondhuang5_1451421's picture
User
3 posts

The community is still actived?

Any reply?

 

bhwj's picture
Cypress Employee
67 posts

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.

Log in to post new comments.