archive:nmk322
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
archive:nmk322 [2024/11/12 22:59] – [Library: Keypad] azman | archive:nmk322 [2025/10/01 07:31] (current) – [Lecture Slides] azman | ||
---|---|---|---|
Line 9: | Line 9: | ||
[20241017] Updating this for 202425s1 Academic Session. | [20241017] Updating this for 202425s1 Academic Session. | ||
- | ===== Lecture Slides ===== | ||
- | |||
- | * Lecture 1 - {{: | ||
- | * Lecture 2 - {{: | ||
- | * Lecture 3 - {{: | ||
- | * Lecture 4 - {{: | ||
===== Library Codes ===== | ===== Library Codes ===== | ||
Introduction to using ' | Introduction to using ' | ||
+ | |||
+ | I recommend to use my include file (mcu51.h) rather than the regular (reg51.h) because it would be easier for you to use my example codes and library. I wrote and tested them using my own syntax that can be used on both Keil and SDCC compilers. Simply extract this {{: | ||
==== Library: Serial (UART) ==== | ==== Library: Serial (UART) ==== | ||
Line 253: | Line 249: | ||
#endif | #endif | ||
#ifndef _ROWS_AT_UPPER_ | #ifndef _ROWS_AT_UPPER_ | ||
- | #define ROWS_FLAG 0x10 | ||
- | #define COLS_FLAG 0x01 | ||
- | #else | ||
#define ROWS_FLAG 0x01 | #define ROWS_FLAG 0x01 | ||
#define COLS_FLAG 0x10 | #define COLS_FLAG 0x10 | ||
+ | #else | ||
+ | #define ROWS_FLAG 0x10 | ||
+ | #define COLS_FLAG 0x01 | ||
#endif | #endif | ||
archive/nmk322.1731423599.txt.gz · Last modified: by azman