代码搜索结果
找到约 1,762 项符合
Speaker 的代码
speaker.h
/*
* Copyright (C) 2001-2005 Jacek Sieka, arnetheduck on gmail point com
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Publi
speaker.vhd
LIBRARY IEEE;
USE IEEE.STD_LOGIC_1164.ALL;
ENTITY Speaker IS
PORT ( clk1 : IN STD_LOGIC;
Tone1 : IN INTEGER RANGE 0 TO 16#7FF#;
SpkS : OUT STD_LOGIC );
END;
A
speaker.v
module SPEAKER(
// CLOCK & RESET
clk_6mhz,
clk_4hz,
rstn,
// INPUT
en,
// OUTPUT
sp
);
/******************* PARAMETER DECLARATION *********************/
/*********
speaker.c
#define TIM *(int *)0x24
#define PRD *(int *)0x25
#define TCR *(int *)0x26
#define IMR *(int *)0x0
#define IFR *(int *)0x1
#define PMST *(int *)0x1d
#define SPSA0 *(unsigned int *)0x3
speaker.cmd
-w
-stack 400h
-heap 100
-l rts.lib
MEMORY
{
PAGE 0:
VECT : o=80h,l=80h
PRAM : o=100h,l=1f00h
PAGE 1:
DRAM : o=2000h,l=1000h
}
SECTIONS
{
.text : {}> PRAM
speaker.pjt
; Code Composer Project File, Version 2.0 (do not modify or remove this line)
[Project Settings]
ProjectName="Speaker"
ProjectDir="C:\ICETEK-VC5416-EDULab\Lab15-Speaker\"
ProjectType=Executable
speaker.c
#include "2407c.h"
#define T46uS 0x0d40
#define nMusicNumber 16
#define nhalfnum 8
ioport unsigned char port8001;
ioport unsigned char port8005;
unsigned char ledbuf[8