Location:
Search - PC2 A
Search list
Description: hs12864 液晶显示程序 端口说明: 1 vss GND 2 VDD VCC(5v) 3 V0 VCC(5v) 4 D/I PC4 5 R/W PC5 6 E PC3 7 DB0 PA0 ... 14 DB7 PA7 15 CS1 PC1 16 CS2 PC2 17 RST PC0-hs12864 LCD procedures ports : a VSS GND 2 VDD VCC (5v) 3 V0 VCC (5v) 4 D / I PC4 5 R / W E PC3 recurring 6 7 DB0 PA0 DB7 PA7 ... 14 15 16 CS2 CS1 PC1 PC2 17 RST PC0
Platform: |
Size: 2521 |
Author: 崔敬军 |
Hits:
Description: 一个模拟操作系统内存分配的程序
可以用图象显示内存使用情况-a simulated operating system memory allocation procedures can use an image memory usage
Platform: |
Size: 1743 |
Author: 亚辉 |
Hits:
Description: 一个模拟操作系统内存分配的程序
可以用图象显示内存使用情况-a simulated operating system memory allocation procedures can use an image memory usage
Platform: |
Size: 10240 |
Author: 亚辉 |
Hits:
Description: This a source of 13.560MHz RFID card reader for TRH031M as ATMEGA8-16AU MPU.
The title is 3Alogics TRH031M 13.56MHz RFID Reader V1.0.
project : RFID Reader V2.0
Target : MEGA8-16AU
Crystal: 16.000 Mhz
Input : TRH031M RFID 13.56MHz
Output : RS232C 115200,N,8,1
Compiler : ICC-AVR V6.26C
// Pin configuration for ATMEGA8-16AU TQFP32
// #30 RXD <--- RXD (SP3232)
// #31 TXD ---> TXD (SP3232)
// #32 PD2/INT0 <--- INTR (TRH031M)
// # 1 PD3/INT1 ---> RST (TRH031M)
// # 2 PD4 ---> D4 (TRH031M)
// # 9 PD5 ---> D5 (TRH031M)
// #10 PD6 ---> D6 (TRH031M)
// #11 PD7 ---> D7 (TRH031M)
// #12 PB0 ---> D0 (TRH031M)
// #13 PB1 ---> D1 (TRH031M)
// #14 PB2 ---> D2 (TRH031M)
// #15 PB3 ---> D3 (TRH031M)
// #16 PB4 ---> CSB (TRH031M)
// #17 PB5 ---> LED
// #23 PC0 ---> A0 (TRH031M)
// #24 PC1 ---> A1 (TRH031M)
// #25 PC2 ---> A2 (TRH031M)
// #26 PC3 ---> ALE (TRH031M)
// #27 PC4 ---> /RD (TRH031M)
// #28 PC5 ---> /WR (TRH031M)
-This is a source of 13.560MHz RFID card reader for TRH031M as ATMEGA8-16AU MPU.
The title is 3Alogics TRH031M 13.56MHz RFID Reader V1.0.
project : RFID Reader V2.0
Target : MEGA8-16AU
Crystal: 16.000 Mhz
Input : TRH031M RFID 13.56MHz
Output : RS232C 115200,N,8,1
Compiler : ICC-AVR V6.26C
// Pin configuration for ATMEGA8-16AU TQFP32
//#30 RXD <--- RXD (SP3232)
//#31 TXD---> TXD (SP3232)
//#32 PD2/INT0 <--- INTR (TRH031M)
//# 1 PD3/INT1---> RST (TRH031M)
//# 2 PD4---> D4 (TRH031M)
//# 9 PD5---> D5 (TRH031M)
//#10 PD6---> D6 (TRH031M)
//#11 PD7---> D7 (TRH031M)
//#12 PB0---> D0 (TRH031M)
//#13 PB1---> D1 (TRH031M)
//#14 PB2---> D2 (TRH031M)
//#15 PB3---> D3 (TRH031M)
//#16 PB4---> CSB (TRH031M)
//#17 PB5---> LED
//#23 PC0---> A0 (TRH031M)
//#24 PC1---> A1 (TRH031M)
//#25 PC2---> A2 (TRH031M)
//#26 PC3---> ALE (TRH031M)
//#27 PC4---> /RD (TRH031M)
//#28 PC5---> /WR (TRH031M)
Platform: |
Size: 12288 |
Author: acleds |
Hits:
Description: 使用netbean编写的有界面的 生产者与消费者测试小程序-Netbean prepared to use interface has producers and consumers to test a small program
Platform: |
Size: 23552 |
Author: 炫耀 |
Hits:
Description: 卡尔曼滤波在AVR单片机的应用,引脚接法:PC1 (ADC1) Y Accel (Pin 8)
PC2 (ADC2) Z Accel (Pin 7)
PC3 (ADC3) X Rate (Pin 3)
PC4 (ADC4) Y Rate (Pin 4)
PC5 (ADC5) VRef (Pin 5)
-
Currently, this project assumes the AVR ATmega168 MCU is hosted on the
AVR STK500 development board with a 20MHz external crystal and the
VTarget voltage set to 3.3V. The spare serial port on the AVR STK500 is
utilized to output the pitch values for each axis at 57.6K baud.
The SparkFun IMU 5 Degrees of Freedom is attached to the AVR ATmega168
MCU on the STK500 as described below:
STK500 PINS IMU 5 DF JP1 PINS
VTG 3.3V (Pin 1)
GND GND (Pin 2)
PC0 (ADC0) X Accel (Pin 9)
PC1 (ADC1) Y Accel (Pin 8)
PC2 (ADC2) Z Accel (Pin 7)
PC3 (ADC3) X Rate (Pin 3)
PC4 (ADC4) Y Rate (Pin 4)
PC5 (ADC5) VRef (Pin 5)
Platform: |
Size: 19456 |
Author: 彭帅 |
Hits:
Description: 此乃一串行日历时钟芯片DS1302的应用程序,AVR与DS1302接口为:PC0--SCLK,PC1--DATA,PC2--/RST。-This is a calendar clock chip DS1302 serial applications, AVR with the DS1302 interface: PC0- SCLK, PC1- DATA, PC2--/RST.
Platform: |
Size: 2048 |
Author: zhujian |
Hits:
Description: 实现功能:
通过ATmega16控制LCD显示和键盘控制菜单选择。此菜单根目录有3个子菜单:图片显示、说明、操作。“图片显示“中有一张atmel.bmp
硬件支持:
ATmega16,TS12864-3 v1.2(带字模),4x4键盘
接口连接:
PB0~PB7 DB0~DB7
PD0~PD7 PB0~PB3 4X4键盘列(4-8)
PB4~PB7 4x4键盘行(1-3)
PC0 RS
PC1 RW
PC2 E
PC3 RST-Achieve functions:
ATmega16 control through LCD display and keyboard to control menu options. This menu is the root directory has three sub-menus: Picture display, description, operation. " Picture Show" has a atmel.bmp
hardware support:
ATmega16, TS12864-3 v1.2 (with font), 4x4 keyboard interface: PB0 ~ PB7 DB0 ~ DB7 PD0 ~ PD7 PB0 ~ PB3 4X4 keypad column (4-8 ) PB4 ~ PB7 4x4 keyboard row (1-3) PC0 RS PC1 RW PC2 E PC3 RST
Platform: |
Size: 114688 |
Author: 周志民 |
Hits:
Description: pc2的测评系统,用于ACM竞赛,希望大家都能下载!-pc2 in the evaluation system for the ACM competition
Platform: |
Size: 2283520 |
Author: fireduck |
Hits:
Description: 编写程序,使8255端口A工作在方式0并作为输出口,端口B工作在方式1并作为输入口,则端口C的PC2成为选通信号输入端STBB,PC2成为中断请求信号输出端INTRB。
当B口数据就绪后,通过发STBB 信号来请求CPU读取端口B数据,并送A端口输出显示。
-Write a program to work in 8255 mode 0, port A as output port, the port operating in mode 1 and B as input port, the port C of PC2 as strobe input STBB, PC2 as an interrupt request signal output INTRB. When the B port data ready, the request by sending signals to CPU STBB read port B data, and sent A port output.
Platform: |
Size: 2048 |
Author: 李明洲 |
Hits:
Description: 1、带倒计时的交通灯控制:将L7、L6、L5作为南北路口的交通灯与PC7、PC6、PC5相连;L2、L1、L0作为东西路口的交通灯与PC2、PC1、PC0相连(方式0)。PA口的PA0~PA6作为输出口(方式0输出)连接7段数码管的段码,PC3、PC4连接数码管的S0,S1来选择显示的位。利用8253产生1秒的中断信号,在中断处理程序中用程序处理10秒延迟和2次黄灯闪烁的问题。
编程使六个灯按交通灯变化规律燃灭,同时数码管显示倒计时的值(10~0,4~0)。
2、带违章拍照功能的交通灯控制:将L7、L6、L5作为南北路口的交通灯与PA7、PA6、PA5相连;L2、L1、L0作为东西路口的交通灯与PA2、PA1、PA0相连。PA口工作在方式1(输出)。利用8253产生1秒的中断信号,在中断处理程序中用程序处理10秒延迟和2次黄灯闪烁的问题。利用单脉冲信号连接到PC6,作为信号输入,由8255产生中断(模拟东西方向上的汽车压黄线),该中断处理程序在东西方向为红灯的时候,令L3灯闪烁一下(周期100ms秒,利用软件延迟,用PA3控制)。编程使六个灯按交通灯变化规律燃灭,同时处理东西方向汽车压黄线问题。
-1, with a countdown traffic light control: L7, L6, L5 as connected to the North-South junction traffic lights and PC7, PC6, PC5 L2, L1, L0 as things junction traffic lights and PC2 PC1 PC0 connected (mode 0). PA0 ~ PA6 PA port as an output port (way 0 output) connected to the 7-segment LED segment code, PC3, PC4 connecting digital tube S0, S1 to select the display bit. 8253 to produce 1 second interrupt signal processing in the interrupt handler using the program for a 10-second delay and the flashing yellow light.
Programmed to six lights variation of traffic lights burning off, digital display countdown value (10 ~ 0,4 ~ 0).
2, with a traffic light violation camera functions to control: the L7, L6, L5 as a north-south junction traffic lights connected to PA7, PA6, PA5 L2, L1, L0 as things junction traffic lights and PA2, PA1, PA0 connected. PA port in Mode 1 (output). 8253 to produce 1 second interrupt signal processing in the interrupt handler using the program for a 10-second d
Platform: |
Size: 2048 |
Author: 天才 |
Hits:
Description: 使用到I/O控制、定时器、串口和液晶屏显示,程序每秒钟往串口打印一次PC2处的AD值,液晶屏同时也通过进度条及数值两种方式将AD值显示出来。串口使用USB-COM接口,波特率为115200,无硬件流控制。-The Blinky project is a simple program for the STM32F407Z
microcontroller using STM STM3240G-EVAL Evaluation Board, compliant
to Cortex Microcontroller Software Interface Standard (CMSIS v2.0).
Example functionality:
- Clock Settings:
- XTAL = 25.00 MHz
- SYSCLK = 168.00 MHz
- Sys Timer is used in interrupt mode
- LED blink with speed depending on potentiometer position
- colour LCD display shows init message and bargraph depending on potentiometer position
- AD settings: 12 bit resolution
- AD value is output onto serial port UART4
UART4 settings: 115200 baud, 8 data bits, no parity, 1 stop bit
The Blinky program is available in different targets:
STM32F407 Flash: runs from Internal Flash located on chip
(used for production or target debugging)
STM32F407 RAM: runs from Internal RAM located on chip
(may be used for target d
Platform: |
Size: 749568 |
Author: |
Hits:
Description: 算法流程
1.将要处理的二进制串进行IP置换
2.将密钥进行PC1置换(64位转为56位),
3.进行16轮操作,对于第i轮操作:
1)将上一次得到的PC1密钥(级除去第一次外,其他的都经过移位处理)的结果左右部分(各28位)分别循环左移1位或2位,然后将移位后的密钥进行PC2[i]置换.
2)将处理串均等分为左右两串Li,Ri(各32位),然后将右串Ri通过E盒拓展为新的右串R (48位),R 与上一步得到的PC2[i]子密钥进行异或操作,结果通过S盒输出(48为转为32位),然后通过P盒直接置换,再与Li异或.
3)将Ri赋给作出Li,R 赋值给Ri.
4)合并处理串StrText=Li+Ri.
4.将最新的处理串进行IP_1置换,置换结果即为所求的加密串或解密串
加密解密的区别
在每轮操作中,加密使用的PC2密钥顺序为0~15,解密使用的PC2密钥顺序为15~0. -Algorithm flow
A binary string to be processed is substituted for IP
2 key the PC1 replacement (64 into 56)
16 operation, the operation for the i-th round:
1) about the results of the last PC1 key (remove the first time, the others have been shifting processing) (28) rotate left one or two, and then will shift key PC2 [i] replacement.
2) is divided into the equal treatment string around two bunches of Li, Ri (32), and then expand the right string Ri E box (48-bit), the right string R R and the previous step PC2 i] subkey XOR operation result is output via the S-box (48 to 32 conversion), and then directly through the P box replacement and XOR with Li.
3) the Ri to make Li, R is assigned to Ri.
4) merger deal with string StrText Ri = Li+.
4. Latest processing string IP_1 replacement, replacement results shall request string encryption or decryption string
Encryption and decryption of difference
In each round of operations, PC2 key e
Platform: |
Size: 2048 |
Author: zhusiyi |
Hits:
Description: It is much easier to spot patterns in your data when you can associate an image with each datapoint.
thumbnailScatter.m overlays an image thumbnail over each datapoint to help with visualization.
For example, if you perform a principal components analysis and would like to plot PC1 vs PC2, use thumbnailScatter.m to see what properties each PC controls.
Run demo_scatterThumbnail.m to see how it works. Test data are provided for the demo.
Platform: |
Size: 169984 |
Author: Shinva |
Hits:
Description: 电磁筏控制程序PC2.PC5控制两个电筏筏开关。basicom写的!-Electromagnetic raft a control program that can have control N-FET, control two electromagnetic energy off the raft. Low-voltage turn, the high voltage is switched off
Platform: |
Size: 1024 |
Author: dfood |
Hits:
Description: matlab文件 自适应遗传算法 在MATLAB中实现自适应算法的函数是:AdapGA
功能:用自适应算法解决一维的无约束化问题。
调用格式:[xv,fv]=AdapGA(fitness,a,b,NP,NG,Pc1,Pc2,Pm1,Pm2,eps)
其中fitness是带优化的目标函数。
-matlab file
Platform: |
Size: 1024 |
Author: helen |
Hits:
Description: Compiler: IAR Embedded Workbench 7.3
MCU:STM8L101F3P6
Features:
1. TX, send a packet of data every 1s, wait for RX response, receive response, data on OLED is +1
2. RX, response is returned after receiving 1 packet of data, and the data on OLED is +1
SX1278 SPI:
PB4 --- NSS
PB5 --- SCK
PB6 --- MOSI
PB7 --- MISO
SX1278 RST:
PA3 --- RST
SX1278 TXEN:
PB3 --- TXEN
SX1278 RXEN:
PB2 --- RXEN
SX1278 IO:
PC0 --- DIO0
PC1 --- DIO1
PC2 --- DIO2
PC3 --- DIO3
PC4 --- DIO4
Platform: |
Size: 232168 |
Author: shadowhunter1 |
Hits: