Canopus
|
codepad
|
|
Canopus
|
Saved pastes by Canopus:
/*
void DACwaddr(unsigned char value); // zapis adresy pro DAC 8b
void DACwdata(unsigned int value); // zapis dat pro DAC 16b
void DAClatch(void); // latchne DAC data
void DACclr(void);
|
view (93 lines) |
#include <avr/pgmspace.h>
#define LCD_WIDTH 128
#ifndef BITMAP_H
#define BITMAP_H
const static uint8_t IMAGE[] PROGMEM = {
|
view (137 lines) |
// GLCD - main.c
/*****************************************************
This program was produced by the
CodeWizardAVR V2.03.4 Standard
Automatic Program Generator
|
view (126 lines) |
// LCD display 128x64 w ST7920 driver connection:
// D0..D7 - PA0..7
// E - PC7
// RS - PC6
// RST - PC5
|
view (150 lines) |
#define F_CPU 4000000UL // taktovací frekvence procesoru 4 MHz
#include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/pgmspace.h> // pgm_read_byte()
|
view (153 lines) |
int main(void)
{
DDRB = 0b10100000; // Set MOSI and SCK output, all others input
SPCR = (1<<SPE)|(1<<MSTR)|(1<<SPR0); // Enable SPI, Master, set clock rate fck/16
|
view (23 lines) |
/* This program has read and write routines for the 68HC11 to interface to the AD7715 and the sample
program sets the various registers and then reads 1000 samples from the part. */
#include <math.h>
#include <io6811.h>
#define NUM_SAMPLES 1000 /* change the number of data samples */
|
view (59 lines) |