1. This BSP can support 2443EVT0 board.
If you want to use EVT0 BSP, set followings.
In smdk2443\smdk2443.bat file
set BSP_EVT1=1
-> set BSP_EVT1=
In smdk2443\src\inc\bsp_cfg.h file
#define EVT1
-> #define EVT0
2. Default system tick mode is changed. The value is fixed tick.
Fixed tick means that tick interrupt is occurred every 1ms.
Variable tick means that timer interrupt period is changed when power mode is in idle.
For changing to variable tick
In smdk2443\src\inc\bsp_cfg.h file
#define FIXEDTICK
-> #define VARTICK
In smdk2443\src\Common\Timer\Sources file
SOURCES= timer_fixedtick.c watchdog.c
->
SOURCES= timer_vartick.c watchdog.c
This file is distributed in the hope that it will be useful, but WITHOUT
* WARRANTY OF ANY KIND.
*
* Author(s): Ole Saether
*
* DESCRIPTION:
*
* Hello World program. Please note that this program runs the internal 8051
* on the default power up frequency of 4MHz. See ex3c.c for an example on how
* to switch to 16MHz.
*
* The functionality is the same as in ex1a.asm.
*
* COMPILER:
*
* This program has been tested with Keil V7.07a.
*
* $Revision: 3 $
*
This file is distributed in the hope that it will be useful, but WITHOUT
WARRANTY OF ANY KIND.
Author(s): Ole Saether
DESCRIPTION:
nRF9E5 Hello World program. Please note that this program runs the internal
8051 on the default power up frequency of 4MHz. See ex3a.asm for an example
on how to switch to 16MHz.
The functionality is the same as in ex1c.c.
ASSEMBLER:
You need as31.exe to assemble this program. It can be downloaded from this
web page: http://www.pjrc.com/tech/8051/
$Revision: 4 $
public class month1{
public static void main(String [] args){
int month = 10
int days = 0
switch(month){
case 1:
days = 31
case 2:
days = 28
case 3:
days = 31
Abstract七段顯示器在DE2可當(dāng)成Verilog的console,做為16進(jìn)位的輸出結(jié)果。Introduction使用環(huán)境:Quartus II 7.2 SP1 + DE2(Cyclone II EP2C35F627C6)簡單的使用switch當(dāng)成2進(jìn)位輸入,并用8位數(shù)的七段顯示器顯示16進(jìn)位的結(jié)果。
The objective is to set up SPI communication between VTI Technologies digital pressure sensor
component and an MCU of an application device ATMEGA16L. In this code example:
?The MCU is configured
?SCP1000-D01 is initialized and configured
?The high resolution measurement mode is activated
?Temperature and pressure information is read always when the DRDY pin is in high state
Please refer to the document "SCP1000 Product Family Specification 8260800" for further
information on SCP1000 register addressing and SPI communication. This document applies to the
SCP1000-D01.
Enter the Matrix MS-DOS screensaver.
Sample of using bios functions (by int 10h) for text data output (monitor in the text mode) and keyboard input. Requires: Borland C++ 3.1 for DOS.