Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 4922

Random number using PIC 16F877A

$
0
0
code description :
generating 200 random numbers and print it out on the first line of the (16x2) LCD ,while generating numbers if i pressed a push bottom i will save the current random numbe
Code (C):
  1. // LCD module connections
  2. sbit LCD_RS at RB0_bit;
  3. sbit LCD_EN at RB1_bit;
  4. sbit LCD_D4 at RB2_bit;
  5. sbit LCD_D5 at RB3_bit;
  6. sbit LCD_D6 at RB4_bit;
  7. sbit LCD_D7 at RB5_bit;
  8.  
  9. sbit LCD_RS_Direction at TRISB0_bit;
  10. sbit LCD_EN_Direction at TRISB1_bit;
  11. sbit LCD_D4_Direction at TRISB2_bit;
  12. sbit...
Random number using PIC 16F877A

Viewing all articles
Browse latest Browse all 4922

Trending Articles