29#include "bsim_picsim.h"
31#include "../devices/io_74xx595.h"
32#include "../devices/lcd_hd44780.h"
33#include "../devices/rtc_ds1307.h"
35#define BOARD_PQDB_Name "PQDB"
108#define KEYPAD_1_PIN RB2
109#define KEYPAD_2_PIN RB1
110#define SO_CLK_PIN RB0
113#define SO_DATA_PIN RD6
114#define LCD_RS_PIN RD5
115#define LCD_EN_PIN RD4
116#define DISP_4_PIN RD3
117#define DISP_3_PIN RD2
118#define DISP_2_PIN RD1
119#define DISP_1_PIN RD0
123#define LED_BLUE_PIN DISP_3_PIN
124#define LED_GREEN_PIN DISP_2_PIN
125#define LED_RED_PIN DISP_1_PIN
131#define LM_PIN AN2_PIN
132#define LDR_PIN AN1_PIN
133#define POT_PIN AN0_PIN
137 unsigned char p_KEY[10];
140 unsigned char active;
150 unsigned char sda, sck;
153 unsigned char srDATA, srCLK, srLAT;
154 unsigned long shiftReg_alm[8];
155 unsigned short _srret;
178 unsigned char scroll1_old;
179 unsigned char scroll2_old;
183 std::string
GetName(
void)
override {
return BOARD_PQDB_Name; };
184 std::string
GetAboutInfo(
void)
override {
return "R.M.A. Almeida \n <rodrigomax@unifei.edu.br>"; };
187 void Draw(
void)
override;
192 void Reset(
void)
override;
193 void EvMouseMove(
unsigned int button,
unsigned int x,
unsigned int y,
unsigned int state)
override;
194 void EvMouseButtonPress(
unsigned int button,
unsigned int x,
unsigned int y,
unsigned int state)
override;
195 void EvMouseButtonRelease(
unsigned int button,
unsigned int x,
unsigned int y,
unsigned int state)
override;
196 void EvKeyPress(
unsigned int key,
unsigned int mask)
override;
197 void EvKeyRelease(
unsigned int key,
unsigned int mask)
override;
202 unsigned short GetInputId(
char* name)
override;
Definition bsim_picsim.h:34
Definition board_PQDB.h:135
void ReadPreferences(char *name, char *value) override
Called whe configuration file load preferences.
Definition board_PQDB.cc:1795
void WritePreferences(void) override
Called to save board preferences in configuration file.
Definition board_PQDB.cc:1763
std::string MGetPinName(int pin) override
board microcontroller pin name
Definition board_PQDB.cc:1846
std::string GetSupportedDevices(void) override
Return a list of supported microcontrollers.
Definition board_PQDB.h:190
void EvMouseButtonRelease(unsigned int button, unsigned int x, unsigned int y, unsigned int state) override
Event on the board.
Definition board_PQDB.cc:1064
unsigned short GetInputId(char *name) override
return the input ids numbers of names used in input map
Definition board_PQDB.cc:1226
void RefreshStatus(void) override
Called ever 1s to refresh status.
Definition board_PQDB.cc:1751
void EvKeyRelease(unsigned int key, unsigned int mask) override
Event on the board.
Definition board_PQDB.cc:1178
void EvMouseMove(unsigned int button, unsigned int x, unsigned int y, unsigned int state) override
Event on the board.
Definition board_PQDB.cc:964
void RegisterRemoteControl(void) override
Register remote control variables.
Definition board_PQDB.cc:905
unsigned short GetOutputId(char *name) override
return the output ids numbers of names used in output map
Definition board_PQDB.cc:1321
void EvOnShow(void) override
Event on the board.
Definition board_PQDB.cc:1221
void Run_CPU(void) override
Paralle thread called ever 100ms to run cpu code.
Definition board_PQDB.cc:526
int MGetPinCount(void) override
board microcontroller pin count
Definition board_PQDB.cc:1914
void EvMouseButtonPress(unsigned int button, unsigned int x, unsigned int y, unsigned int state) override
Event on the board.
Definition board_PQDB.cc:983
void Draw(void) override
Called ever 100ms to draw board.
Definition board_PQDB.cc:208
void Reset(void) override
Reset board status.
Definition board_PQDB.cc:863
std::string GetName(void) override
Get board name registered in PICSimLab.
Definition board_PQDB.h:183
void EvKeyPress(unsigned int key, unsigned int mask) override
Event on the board.
Definition board_PQDB.cc:1135
std::string GetAboutInfo(void) override
Return the about information of part.
Definition board_PQDB.h:184
Definition io_74xx595.h:49
Definition lcd_hd44780.h:67
Definition rtc_ds1307.h:29