Holtek C语言学习教程

Holtek C语言学习教程
Holtek C语言学习教程

第一课时

1、Holtek公司编译器HT-IDE3000使用说明

(1)双击打开HT-IDE3000,进入编译器的界面,见下图:

(2)单击“工程”——>选择“新建”,弹出下图窗口;

——Project Name:新建项目文件的名称,不建议使用中文名称;

——Project Location:项目文件存放的位置,勾选“Create directory for project”后,会

自动建立一个文件夹,项目文件都存放在此文件夹内;

——Project MCU:单片机的型号;

——Choose Language Tool:选择编程语言,这里选择“V2”版本的C语言。

(3)点击下一步,选择“.C”;

(4)点击下一步,再点击下一步,点击OK,然后弹出“配置选项”,配置选择只要是对单片机一些功能和特性进行设置,例如工作电压,工作频率,看门狗等;

(5)配置选项设置完后,点击OK,再点击确定,那么新的工程就建立完毕了。

2、C语言程序设计

(1)主函数

每个程序只有一个主函数,程序是从主函数开始执行。

格式:void main()

{

}

例子:

#include "HT66F40.h"

void main() //程序从这里开始跑

{

_nop(); //语句1

_nop(); //语句2

_nop(); //语句3

}

功能说明:程序执行的顺序,语句1—>语句2—>语句3。

(2)子函数

一个程序包含各种功能,如果每种功能都做成一个子函数,那么整个程序的架

构实现了模块化。

例如,LCD的开启,显示及关闭这三个功能可以分别做成三个独立的子函数。

使用子函数的步骤:

①编写子函数的功能

void TurnOn_LCD() //LCD开启子函数,TurnOn_LCD是函数的名称

{

_nop(); //这里先用空指令代表子函数的功能

_nop(); //这里先用空指令代表子函数的功能

}

②声明子函数,告诉单片机有这个子函数存在

void TurnOn_LCD();

技巧:直接把步骤①的第一行复制过来,然后在后面加上分号;

③调用子函数

TurnOn_LCD();

例子:

#include "HT66F40.h"

void TurnOn_LCD(); //声明子函数,告诉单片机有这个子函数存在

void TurnOff_LCD(); //声明子函数,告诉单片机有这个子函数存在

void display_LCD(); //声明子函数,告诉单片机有这个子函数存在

void main()

{

_nop(); //空指令

_nop(); //空指令

_nop(); //空指令

while(1) //while循环结构,当小括号里内容为真,执行

{ //while大括号里的内容

TurnOn_LCD(); //调用LCD开启子函数

display_LCD(); //调用LCD显示子函数

TurnOff_LCD(); //调用LCD关闭子函数

}

}

void TurnOn_LCD() //编写子函数的功能,LCD开启子函数,TurnOn_LCD是

{ //函数的名称

_nop(); //这里先用空指令代表子函数的功能

_nop(); //这里先用空指令代表子函数的功能

}

void TurnOff_LCD() //编写子函数的功能,LCD关闭子函数,TurnOff_LCD是

{ //函数的名称

_nop(); //这里先用空指令代表子函数的功能

_nop(); //这里先用空指令代表子函数的功能

}

void display_LCD() //编写子函数的功能,LCD显示子函数,display_LCD是

{ //函数的名称

_nop(); //这里先用空指令代表子函数的功能

_nop(); //这里先用空指令代表子函数的功能

}

(3)中断子函数

使用中断子函数的步骤:

①相关寄存器进行初始化(请查阅相关型号IC的PDF)

②声明中断子函数地址

格式:#pragma vector 中断子函数名称@中断入口地址

例如:

#pragma vector isr_tm0 @0x14

③编写中断子函数的功能

例如:

void isr_tm0()

{

}

例子:

#include "HT66F40.h"

#pragma vector isr_tm0 @0x14//声明中断子函数的入口地址

void mcu_init(); //声明单片机初始化子函数

void main()

{

mcu_init();

while(1) //while循环结构,当小括号里内容为真,执行while

{ //大括号里的内容

_nop();

_nop();

}

}

void isr_tm0() //编写中断子函数的功能

{

_t0af=0; //清除中断标志位

_nop(); //这里先用空指令代表中断子函数的功能

}

void mcu_init() //编写单片机初始化子函数

{

//定时器相关寄存器初始化

_tm0c0=0b00000000; //定时器计数时钟fsys/4=1Mhz,fsys=4Mhz为系统

//频率

_tm0c1=0b11000001; //选择定时计数工作模式,

//清0计数器的条件:与比较器A匹配,即

//计数值与tm0al,tm0ah的值相等时,计数器清0)_tm0al=0xe8; //0x03e8=1000

_tm0ah=0x03;

_t0on=1; //启动定时器

//定时器中断相关寄存器初始化

_emi=1; //总中断控制位,0-关闭1-开启

_mf0e=1; //多功能中断0控制位,0-关闭1-开启

_t0ae=1; //TM0比较器A匹配中断控制位,0-关闭1-开启

}

(4)函数的返回值及参数的介绍

①无返回值,无参数函数:前面介绍的函数均为无返回值无参数函数。

例如:

void main()

{

}

void表示此函数是“空类型”(无返回值),void是“空”的意思,即执行

此函数后不产生一个函数值。

②有返回值,有参数函数

例如:

程序功能说明:

参数的传递:调用函数时,程序把a赋值给x,b赋值给y;因为a和b

的数据类型是u8,所以参数x和y的数据类型也是u8。

返回值:子函数max调用完之后,通过return(z);语句把函数值z返

回给主函数,即c=max(a,b);等价于c=z; ;因为c的数据类型为u8,所以

函数返回值的类型也是u8。

u8 max(u8 x,u8 y)——第一个u8为函数返回值类型,其余为参数的数据类

型。

#include "HT66F40.h"

#define u8 unsigned cha r //程序中u8与unsigned char 等价

u8 a,b,c; //声明变量a,b,c

u8 max(u8 x,u8 y); //声明函数max,函数功能为比较两个数大小

void main()

{

a=3; //3赋值给变量a

b=4; //4赋值给变量b

while(1) //while循环结构,当小括号里内容为真,执行while大括号{ //里的内容

_nop(); //空指令

_nop(); //空指令

c=max(a,b); //max函数调用

}

}

u8 max(u8 x,u8 y) //max函数功能的编写

{

u8 z; //定义变量z,只在max函数里才有效

z=x>y?x:y; //如果x大于y,z=x;反之,z=y;

return(z); //返回z的值给主函数

}

③无返回值,有参数函数

例如:显示功能函数,

#include“ht66f40.h”

#define u8 unsigned char

u8 display_data;

void display(display_data);

void main()

{

while(1)

{

display(0x55);

}

}

void display(display_data)

{

_nop(); //显示的实际功能先用空指令代替

_nop(); //显示的实际功能先用空指令代替

}

功能说明;函数调用时,把显示的数据0x55通过参数传递给display_data;显示完毕后,并不需要返回一个函数值,因此函数的返回类型为空。

3、常量、变量及变量的数据类型介绍

(1)常量

①以实际的数值出现在程序里面

例如:二进制常量0b10101010

十进制常量170

十六进制常量0xAA

②符号常量

在程序中,用一个符号来表示一个常量。

例如:#define time 50 //程序中,用time来表示50这个常量

③查表常量

const unsigned char tab[10]={

0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09};

——数据存放在单片机ROM里面,10代表有10个数;

——tab[0]表示第一个数,tab[1]表示第二个数……tab[9]表示第十个数。

(2)变量及其数据类型

①程序执行过程中,需要暂存一些数据,例如标志位,执行次数,AD采样数

据等,因此就需要定义变量来储存这些数据的。

由于变量占用ROM空间或RAM空间,因此在使用变量前,需要定义变量的

数据类型,以便让编译器配置存放变量的空间。

例如:bit flag; //声明一个名称为flag的位变量

unsigned char temp1; //声明一个名称为temp1的字节变量

unsigned int temp2; //声明一个名称为temp2的双字节变量

unsigned long temp3; //声明一个名称为temp3的四字节变量

temp1=10;//变量的赋值,

temp2=0x09; //变量的赋值,

注:变量声明时,如果没有进行初始化,那么变量的值是随机的。

③构造数据类型

数组是指由同一种基本数据类型的数组成的一组数据。

例如:unsigned char tab[10]={}; //声明一个名称为tab的数组,它是由10

//个字节变量组成的。

//这10个变量分别是tab[0]、tab[1]……tab[9]

数组在声明时不能进行初始化,需用户在主函数里进行初始化。

例如:

unsigned char i; //声明一个字节变量

unsigned char tab[10]; //声明一个长度为10的字节变量数组

for(i=0;i<10;i++) //for循环结构,请参考下面章节

tab[i]=0;

}

//上述代码等于tab[0]=0;tab[1]=0;……tab[9]=0

④变量命名规则

——第一个字符必须是英文字母或底线符号”_”,之后可紧接字母或数字。

——变量名不能超过32个字符。

——英文字母的大小写是有区别的。

例如:count,count2,_count,_count2

⑤变量的有效范围

——定义在函数里面,变量有效范围在此函数范围内。

——定义在函数外面,变量有效范围是整个程序。

《第一课时总结》——案例1

#include“ht66f50.h”

#define u8 unsigned char //程序中出现u8,实际会用unsigned char代替

#define u16 unsigned int//程序中出现u16,实际会用unsigned int代替

#define u32 unsigned long//程序中出现u32,实际会用unsigned long代替

#define time 50//程序中出现time,实际会用50代替

#pragma rambank0 //把下面定义的变量都存放在RAM的区域0

bit flag1; //声明位变量flag1

bit flag2; //声明位变量flag2

u8 i; //声明字节变量i

u8 count; //声明字节变量count

u8 temp1; //声明字节变量temp1

u16 temp2; //声明双字节变量temp2

u32 temp3; //声明四字节变量temp3

u8 tab[10]; //声明长度为10的字节变量数组

void mcu_init(); //声明子函数,单片机初始化

void main(void)

{

mcu_init(); //调用子函数,单片机初始化

while(1)

{

flag1=0; //把0赋值给flag1

flag2=1; //把1赋值给flag2

count=time; //把time赋值给count,实际是把50赋值给count

temp1=0xff;//把0xff赋值给temp1

temp2=0xffff; //把0xffff赋值给temp2

temp3=0xffffffff;//把0xffffffff赋值给temp3

}

}

void mcu_init() //单片机初始化子函数的编写{

_acerl=0x00; //AD通道都作为普通I/O口功能_cp0c=0x08; //关闭比较器0

_cp1c=0x08; //关闭比较器1

for(i=0;i<10;i++) //数组初始化

{

tab[i]=0;

}

}

第二课时

1、C程序架构

(1)C语言的程序是由语句所组成,每条语句的最后必须有分号“;”做为结束符。

①函数及变量的声明语句;

例如:void mcu_init(); //声明子函数语句

bit flag1; //声明变量语句

②表达式语句,执行数学及逻辑运算;

例如:temp1=0xff; //赋值语句

Temp1=temp1-100; //减法运算语句

temp=a||b;

temp={a&&b)>c;

表达式和表达式语句的区别:

表达式:由运算符和数据构成的式子

例如:a

a+1

a&&b

表达式语句:见前面②说明。

③函数调用语句,执行函数的功能

例如:mcu_init(); //子函数调用语句

④程序中还包含一些前置预处理指令,它们后面不需要加分号“;”作为结束符。

例如:

#include “ht66f50.h”

#define u8 unsigned char //程序中出现u8,实际会用unsigned char代替

#define time 50 //程序中出现time,实际会用50代替

#pragma rambank0 //把下面定义的变量都存放在RAM的区域0

(2)运算符

①数学运算符

+ - * / % 分别为加法,减法,乘法,求商,求余

②比较运算符

两个数比较,如果成立,运算结果为真(1);否则,运算结果为假(0)。

> 大于//例如a>b,如果a大于b,则结果为1;否则结果为0

>= 大于或等于//参考上述

< 小于//参考上述

<= 小于或等于//参考上述

== 等于//参考上述

!= 不等于//参考上述

③逻辑运算符

取运算符两边数据的真假值做逻辑运算,运算结果是真(1)或假(0)。

&& 与运算//0xf0&&0x00=0;0xf0&&0x08=1;

|| 或运算//0xf0||0x00=1; 0x00||0x00=0;

!非运算//!0xf0=0; !0=1;

④位逻辑运算符

两个数位与位进行操作。

& 位与//0b11111111&0b10101010=0b10101010;

//1&1=1;1&0=0;0&1=0;0&0=0;

//两个1为1,其余为0

| 位或//0b11111111|0b10101010=0b11111111;

//1|1=1;1|0=1;0|1=1;0|0=0;

//两个0为0,其余为1

^ 位异或//0b11111111^0b10101010=0b01010101;

//1^1=0;1^0=1;0^0=0;

//相同为0,不同为1

~ 位取反//~1=0;~0=1;

>> 向右移位//0b10101010>>1=0b01010101;右移1位

<< 向左移位//0b10101010<<1=0b01010100;左移1位

2、程序流程控制

(1)if选择结构(2选1选择结构)

①if(条件表达式) {语句1;}//如果条件表达式为真,执行语句1;

else {语句2;}//如果条件表达式为假,执行语句2;

——小技巧:如果没有语句2,else可以忽略不写。

例如:

#include“ht66f40.h”

#define u8 unsigned char //程序中出现u8,实际会用unsigned char代替#define u16 unsigned int

#define u32 unsigned long

#pragma rambank0

bit flag;

u8 count;

void main()

{

flag=1; //把1赋值给位变量flag

while(1)

{

if(flag!=1) //如果位变量flag不等于1

{

count=2;//执行把2赋值给字节变量count

}

else//如果位变量flag等于1

{

count=3;//执行把3赋值给字节变量count

}

}

}

②if语句嵌套:要注意哪个括号是属于哪个if或else的

格式:

if(表达式1) //如果表达式1为真,执行if大括号里的内容

{ //即执行语句1和第二个if语句

语句1;

if(表达式2) //如果表达式2为真,执行if大括号里的内容

{ //即执行语句2

语句2;

}

else //如果表达式2为假,,执行else大括号里的内容

{ //即执行语句3

语句3;

}

}

else //如果表达式1为假,执行else大括号里的内容

{ //即执行语句4

语句4;

}

(2)switch(表达式)//多选1选择结构

case 常量表达式1:语句1;break;

case 常量表达式2:语句2;break;

case 常量表达式3:语句3;break;

……

default:break;//其他

功能说明:根据switch后面括号表达式的值来选择执行哪一个case后面的语

句,执行到break;程序会跳出switch结构。

例如:

#include“ht66f50.h”

#define u8 unsigned char//程序中出现u8,实际会用unsigned char代替

#define u16 unsigned int

#define u32 unsigned long

#define time 50

#pragma rambank0 //把下面定义的变量都存放在RAM的区域0 bit flag1;

bit flag2;

u8 count;

u8 temp1;

u16 temp2;

u32 temp3;

void mcu_init(); //声明子函数,单片机初始化

void main(void)

{

mcu_init(); //调用子函数,单片机初始化

while(1)

{

temp1=2;

switch(temp1)

{

case1: count=10;break; //如果temp1==1;执行

case 2: count=20;break; //如果temp1==2;执行

case 3: count=30;break; //如果temp1==3;执行

default: break; //如果temp1是其他值,执行}

}

}

void mcu_init()

{

_acerl=0x00;

_cp0c=0x08;

_cp1c=0x08;

}

(2)循环结构

①while循环

while(表达式)

{语句;}

功能说明:判断表达式是否成立;

——成立执行语句;

——不成立跳出while循环;

例如:while(1)

{

}

②for循环

for(表达式1;表达式2;表达式3;)

{语句;}

功能说明:先执行表达式1;

判断表达式2是否成立;

——成立执行语句,执行表达式3,跳回判断表达式2是否成立;

——不成立跳出for循环;

例如:

unsigned char i; //声明一个字节变量

unsigned char tab[10]; //声明一个长度为10的字节变量数组

for(i=0;i<10;i++) //for循环结构,请参考下面章节

tab[i]=0;

}

《第二课时总结》——案例2

软件功能:用定时器实现1分钟的计时,用2位数码管显示。

普通语言学教程笔记(索绪尔)

《普通语言学教程》索绪尔 绪论 第一章语言学史一瞥 语法(规范)-语文学(过于注重书面语)-比较语文学或比较语法(只比较)-新语法学派(语言集团集体精神的产物) 第二章语言学的材料和任务;与毗邻科学的关系 语言学的任务是:a 对一切能够得到的语言进行描写并整理他们的历史,尽可能重建每个语系的母语;b 寻求在一切语言中永恒地普遍地起作用的力量,整理出能概况一切历史特殊现象的一般规律;c 确定自己的界限和定义。它与社会心理学、生理学、语文学相关。语言学也有实际用途,特别是对于那些利用文献的人,另外对一般修养也很重要。 第三章语言学的对象 定义——在任何时候,语言都是现行制度和过去的产物。我们的研究方法是一开始就站在语言的阵地上,把它当做言语活动的其他一切表现的准则。语言和言语活动不能混为一谈,它只是言语活动的一个确定的部分,而且当然是一个主要部分,它既是言语机能的社会产物,又是社会集团为了使个人有可能行使这机能所采用的一整套必不可少的规约。语言本身是一个整体,一个分类的原则。它是一种约定俗成的东西,人们同意使用什么符号,这符号的性质是无关轻重的。对人类天赋的不是口头的言语活动,而是构成语言——即一套和不同的观念相当的不同的符号——的机能。人们说话的机能——不管是天赋的或非天赋的——只有借助于集体所创造和提供的工具才能运用,所以,说语言使言语活动成为统一体,绝不是空想。 语言在言语活动事实中的地位——言语循环重建:心理现象-生理过程-物理过程-生理过程-

心理现象 (c-i)这一主动过程称为执行部分,(i-c)这一被动过程称为接受部分,此外还有联合和配置的机能。语言是社会的、主要的,言语是个人的、偶然的、从属的。 语言的特征是:1 他是言语活动事实的混杂的总体中的一个十分确定的对象,是言语的社会部分。2 语言是人们能够分出来加以研究的对象。3 言语是异质的,而规定下来的语言是同质的,它是一种符号系统,在系统中,只有意义和音响形象的结合是主要的,符号的两个部分都是心理的。4 语言这个对象在具体性上比言语毫不逊色。即是音响形象的堆叠,又可转为文字。 语言在人文事实中的地位:符号学——语言是一种表达观念的符号系统。符号在本质上是社会的。 第四章语言的语言学和言语的语言学

《普通语言学教程》读书笔记

《普通语言学教程》读书笔记 10级汉语3班徐星星100322 本书著者是本世纪最著名、影响最深远的语言学家之一费尔迪南·德·索绪尔,在本书中,他对欧美语言学界所接触到的各种有关原理和方法的问题都作了总结,并且提出了自己独到的见解。这本书的影响也遍及世界。 首先在绪论的第三章中,索绪尔向我们阐释了语言的定义: 语言是一种约定俗成的东西,人们同意使用什么符号,这符号的性质是无关轻重的。即一套和不同的观念相当的不同的符号。人们说话的机能只有借住集体创造和提供的工具才能运用,不管是天赋的或非天赋的。所以说,说语言使言语活动成为统一体,那绝不是什么空想。在索绪尔看来。语言是语言共同成员中的语法体系,言语则是人们平时说的那些话,是依赖于语法系统的说话行为。言语是语言的体现。语言学研究实际语言行为中所潜藏的形式系统,因此,在索绪尔看来,语言学的对象是语言而不是言语。 索绪尔认为,把语言和言语分开,我们就把什么是社会的,什么是个人的,什么是主要的,什么是从属的和偶然的区分开来了。照此看来,语言学家主要的研究对象应该是“语言”、确定构成“语言”的单位及其组合规则,而不是去描写言语活动。“语言”是一个符号的系统,在这个系统中,只有意义和音响的形象的结合是主要的。 索绪尔为了确立语言学的研究对象,区分出“语言”和“言语”,他的“语言”和“言语”理论不仅对本世纪的语言研究的方法产生了深刻的影响,而且还影响着文学和符号学研究。 在第一编中,索绪尔指出语言是一个符号系统。语言是符号学的一部分,他强调语言具有一般符号系统的主要特征。语言与其他一切同类的的符号系统有以下几点共同点。一是目的相同,各种符号系统虽然采用的手段不同,复杂程度不同,但目的都是一样的,都是为了传递信息。二是它们的内涵相同,一切符号系统之所以能传递信息是因为它们与意义相联系。意义是符号的内涵,是符号在使用该系统的人在头脑中激发的概念。三是构成元素相同,无论使用

索绪尔普通语言学教程单词.

绪论 第一章 A Brief Survey of History of Linguistics institute 建立,实行prescriptive 规范性的Alexandria 亚历山大Philology 语文学inaugurate 倡导scientific 学术上的literary 文学的institution 制度criticism 考订 insofar 只有/在…范围内/达到…程度decipher 解密archaic 古代的problematic 难懂的couch v. 表达、措辞slavishly 如奴隶般的subservient 有帮助的/奉承的antiquity 古代文物affinity 亲属关系furnish 提供elucidation 说明,解释Sanskrit 梵语broader 广阔的sounder 牢固的Paradigm 范例/词性变化(表)Latin 拉丁语hypothesis 假定Vowel 元音Proto-Indo-European 印欧语faithful 如实的 havoc 杂乱,浩劫by chance 偶然,意外Germanic 日耳曼语etymological 词源学comparative mythology 比较神话学school 学派 principle 原理mutual 互相的,共有的codification 法典编纂systematization 系统阐述volume 著作instead of 然而warrant n.授权/搜查证/理由/委任书/证明vt. 批准/成为…的根据/向…论证/[口]断言elude 困惑/躲避exclusive 高级的/排外的/独有的validate 使生效/承认/验证Bizarre 异乎寻常的permissible 可容许的methodological 方法论的Initial stage 初期magnify 放大attest 证明 Restrict 限制,约束Junggrammatiker 新语法学派inadequacy 不足第二章语言的材料和任务;它和毗邻科学的关系

刘润清《新编语言学教程》笔记和课后习题(认知语言学)【圣才出品】

第10章认知语言学 10.1 复习笔记 本章要点: 1. Cognitive linguistics 认知语言学 2. Categorization and categories 范畴化与范畴 3. Conceptual metaphor and metonymy 概念隐喻与转喻 4. Iconicity and grammaticalization 象似性与语法化 常考考点: 认知语言学定义;范畴化与范畴定义分类等;概念隐喻与转喻的定义,层次分类;象似性的分类以及语法化等。 本章内容索引: I. Definition of cognitive linguistics II. Categorization and categories

1. Definition of categorization 2. The classical theory 3. The prototype theory 4. Levels of categorization III. Conceptual metaphor and metonymy 1. Conceptual metaphor 2. Conceptual metonymy IV. Iconicity 1. Iconicity of order 2. Iconicity of distance 3. Iconicity of complexity V. Grammaticalization I. Definition of cognitive linguistics (认知语言学定义) 【考点:名词解释】 Cognitive linguistics is an approach to the analysis of natural language that focuses on language as an instrument for organizing, processing, and conveying information. 认知语言学是一种研究自然语言的方法,集中研究语言组织,处理与传达信息的作用。 II. Categorization and categories (范畴化与范畴) 1. Definition of categorization and categories (定义)

(完整版)戴炜栋《简明语言学教程》配套笔记_自己整理版

Chapter 1 Introduction What is linguistics? 什么是语言学 [A] The definition of linguistics Linguistics is generally defined as the scientific study of language (对语言进行的科学研究) Process of linguistic study: ① Certain linguistic facts are observed, generalization are formed; ② Hypotheses are formulated; ③ Hypotheses are tested by further observations; ④ A linguistic theory is constructed. [B] The scope of linguistics General linguistics普通语言学: the study of language as a whole从整体研究 1.Phonetics: the general study of the characteristics of speech sounds (or the study of the phonic medium of language) (How speech sounds are produced and classified) 2.Phonology: is essentially the description of the systems and patterns of speech sounds in a language.(How sounds form systems and function to convey meaning) 3.Morphology: the study of the way in which morphemes are arranged to form words (how morphemes are combined to form words) 4.Syntax: the study of those rules that govern the combination of words to form permissible sentences (how morphemes and words are combined to form sentences) 5.Semantics: the study of meaning in abstraction 6.Pragmatics: the study of meaning in context of use Sociolinguistics: the study of language with reference to society Psycholinguistics: the study of language with reference to the workings of the mind Applied linguistics: the application of linguistics principles and theories to language teaching and learning Anthropological linguistics, neurological linguistics; mathematical linguistics; mathematical linguistics; computational linguistics [C] Some important distinctions in linguistics ① Prescriptive vs. Descriptive 规定性与描写性 ② Synchronic vs. Diachronic 共时性与历时性(现代英语多研究共时性) The description of a language at some point in time; The description of a language as it changes through time. ③ Speech and writing 言语与文字 Spoken language is primary, not the written ④ Langue and parole 语言和言语 Proposed by Swiss linguists F. de Sausse (sociological)

《语言学纲要》(叶蜚声_徐通锵)详细复习资料_课堂讲义笔记

语言学纲要讲义笔记 导言 一、语言的定义 语言是人类最重要的交际工具和思维工具、是由音义结合的词汇和语法构成的一种符号系统。 二、语言学的对象和任务 语言学是研究语言的科学。 要把语言学跟语文学区分开来 中国传统语文学——“小学” 小学是我国古代语文学的统称,由训诂学、文字学、音韵学三部分组成。 在古印度,公元前4世纪,著名学者潘尼尼在整理、注释婆罗门教经典《吠陀》时,写了一本《梵语语法》,提出3996条规则,被人们称为最完备的语法书。在古希腊,伯拉图和亚里斯多德是从哲学的角度来研究语言的,他们讨论了词为什么具有意义等内容。 三、语言学在科学体系中的地位 语言学既是一门古老的科学,又是一门年轻的科学。 1、与社会科学、自然科学的联系 语言研究的成果是哲学、历史学、考古学、文学、政治学、经济学、逻辑学、社会学、民族学、计算机科学等学科所必须利用的,可见语言研究在这些社会科学中已占重要地位。 语言学与其他学科相交叉产生社会语言学、心理语言学、计算语言学、生物语言学、模糊语言学、实验语音学等。如:运用语言传递信息的过程,可分为五个阶段: 编码——发送——传递——接收——解码 对这一具体过程的解释需要结合物理学、生理学、心理学等其他学科的知识。三、语言学的基本类别 总体上,根据研究对象的不同,语言学可以分为理论语言学和应用语言学两大类。(一)理论语言学可分为: 1、一般/普通语言学

2、个别/具体语言学 具体语言学 (1)历时语言学 (2)共时语言学 (二)应用语言学 1、社会语言学:研究语言与社会集团的关系。如地域方言、社会方言、语言的接触、语言规划等。 2、心理语言学:研究儿童语言习得、语言的接收和发生过程,等。 3、神经语言学 最近二十年才从心理语言学中分离出来的一门新的学科,主要研究语言和大脑结构的关系,中心是大脑如何生成语言。 此外,还有数理语言学、统计语言学、实验语音学等。 第一章语言的功能 第一节语言的社会功能 一、语言的信息传递功能 信息传递功能是语言的最基本的社会功能。 人类还借助语言之外的其他形式传递信息,它们是文字,旗语,信号灯,电报代码,数学符号,化学公式等等。 身势等伴随动作等是非语言的信息传递形式。 身势等非语言的形式多半是辅助语言来传递信息; 文字是建立在语言基础之上的最重要的再编码形式; 旗语之类是建立在语言或文字基础之上的再编码形式; 语言是人类社会信息传递第一性的、最基本的手段,是最重要的交际工具。二、语言的人际互动功能 语言的社会功能的另一个重要方面是建立或保持某种社会关联,这就是语言的人际互动功能。互动包括两个方面:一个是说话者在话语中表达自己的情感、态度、意图,另一方面这些又对受话者施加了影响,得到相应的语言或行动上的反馈,从而达到某种实际效果。

《普通语言学》读书心得

《普通语言学教程》读书会心得 近一个月来,大家都在为这次读书会进行忙碌的准备。下午听完各位同学不同的观点,有受益匪浅的地方,有值得学习的地方,也有可以讨论、不确定的地方,甚至反驳的地方。 值得一提,也就是值得思考的就是,几乎所有同学对这本书的普遍反映就就是——瞧不懂。有瞧了整本书三遍以上还就是觉得很费解的同学,也有反反复复的瞧很多遍绪言却还就是没懂,卡在绪言部分的同学。大家都非常用心的读了这本著作,却也被其中谈到的哲学、心理学、地理学、甚至物理学的东西的搞得头晕眼花,我也就是如此。借用今天读书会上一位同学的话说,“哲学系的同学跟我说想瞧懂这本书就要先学懂哲学,于就是,我就借了一本哲学书瞧,可就是瞧不懂。心理学的同学跟我说,想要瞧懂这本书就要先学心理学,我又借了一本心理学的书,还就是瞧不懂。无奈,我又去借了一本微心理学的书,瞧就是瞧懂了,可就是发现跟语言学没什么关系”。这足以说明索绪尔的《普通语言学教程》这本书涉猎学科之广泛,蕴藏知识之深奥。再借用另外一名同学在读书会上讲到的一个小笑话为例,她说她曾在朋友圈发表一条状态,她的某位学经济的同学就是这样评论的,“索绪尔说:‘您的结构有问题’。乔姆斯基说:‘亲爱的,别听她的,结构这玩意儿就就是一坨屎。’”。可见,这本书不仅仅就是学语言的人需要读的著作,也吸引着其她很多学科的人了解它,认识它,潜心研究。 先以我个人的观点为例谈谈我对这本书的内容的感触。与其她同学一样,《普通语言学教程》之于我也就是非常难理解的一部著作,其中涉猎的学科之广,有些就是我从未接触与涉及过的领域,以现阶段的学识基础,读起来真的就是非常有难度。那么,就我现阶段知识结构来说说关于书中第三章“地理差异的原因”——基本原因:时间的浅显认识吧。索绪尔提出语言有地理差异的原因的基本原因就是时间。相信很多同学瞧到这里都会有疑问,我也就是如此,一谈到语言的地理差异,第一反应认为基本原因就就是空间差异,因为去了另外一个地方,受到当地人、事、环境、习俗等等的影响,语言才会出现差异。抱着这种疑问并且不服气的心态瞧了这章内容,不得不说,我被索绪尔的理论说服了,也被自己曾经历过的实践说服了。由于大学时读英语专业,自己有着很深切学习另一门语言的感受,加之对英美文化背景的了解,让我更容易理解与赞同索绪尔提出的——言地理差

新编语言学教程第2版第4章答案

《新编简明英语语言学教程》第二版第4章练习题参考答案Chapter 4 Syntax 1. What is syntax? Syntax is a branch of linguistics that studies how words are combined to form sentences and the rules that govern the formation of sentences. 2. What is phrase structure rule? The grammatical mechanism that regulates the arrangement of elements (i.e. specifiers, heads, and complements) that make up a phrase is called a phrase structure rule. The phrase structural rule for NP, VP, AP, and PP can be written as follows: NP →(Det) N (PP) ... VP →(Qual) V (NP) ... AP →(Deg) A (PP) ... PP →(Deg) P (NP) ... We can formulate a single general phrasal structural rule in which X stands for the head N, V, A or P. 3. What is category? How to determine a word's category? Category refers to a group of linguistic items which fulfill the same or similar functions in a particular language such as a sentence, a noun phrase or a verb. To determine a word's category, three criteria are usually employed, namely meaning, inflection and distribution. 若详细回答,则要加上: Word categories often bear some relationship with its meaning. The meanings associated with nouns and verbs can be elaborated in various ways. The property or attribute of the entities denoted by nouns can be elaborated by adjectives. For example, when we say that pretty lady, we are attributing the property ‘pretty’ to the lady designated by the noun. Similarly, the properties and attributes of the actions, sensations and states designated by verbs can typically be denoted by adverbs. For example, in Jenny left quietly the adverb quietly indicates the manner of Jenny's leaving. The second criterion to determine a word's category is inflection. Words of different categories take different inflections. Such nouns as boy and desk take the plural affix -s. Verbs such as work and help take past tense affix -ed and progressive affix -ing. And adjectives like quiet and clever take comparative affix -er and superlative affix -est. Although inflection is very helpful in determining a word's category, it does not always suffice. Some words do not take inflections. For example, nouns like moisture, fog, do not usually take plural suffix -s and adjectives like frequent, intelligent do not take comparative and superlative affixes -er and -est.

索绪尔及其《普通语言学教程》之心得

费迪南德?德?索绪尔(Ferdinand de Saussure,1857-1913)是现代语言学的创始人。他是一位杰出的语言学家。作为一门新兴人文学科的开创者,他对语言哲学的影响也极为广泛深刻。 索绪尔出生于日内瓦,父亲是一位科学家。他从小受到自然科学的教育,同时也得到良好的语言教育和语言学教育,掌握法语、德语、英语和拉丁语,初通梵文。15岁时就写了一篇《语言论》。曾于日内瓦大学和莱比锡大学,研习物理、化学和希腊文。莱比锡大学当时是新语法学家的中心,在那的学习大致确定了索绪尔后来以语言学为业的道路。也就在这个时期,他发表了他的第一篇重要论文,《论印欧系语言中原因的原始系统》,引起学术界的重视,而那时他才年仅21岁。获得博士学位后,索绪尔移居巴黎,在高等研究学院讲授梵文、哥特语、古高地德语以及印欧语文学概况。1891年,他开始到日内瓦大学任教。日内瓦与巴黎的学术研究相比相对滞后。索绪尔穷究一生,不带任何传奇色彩。他在世时只是著名的语言学家,但他作为一个哲学家的地位,却是直到他死后才为人们所认可的。 索绪尔生前只发表过很少几篇相当专业的论文。1907-1911年期间,他在日内瓦大学担任普通语言学课程的教学。1913年他去世以后,他的学生和同事根据几本听课笔记才汇编成《普通语言学教程》一书,出版发行。索绪尔不仅吝于发表,他留下的笔记也很少,因此编辑这本书很不容易。因为,跟所有的老师一样,他讲课时也是有很多重复,甚至不一致的内容。难得的是编辑者们没有放弃,合并梳理成一本书,从而造就了一部惊世巨著。 《普通语言学教程》这部著作主要由绪论和附录两部分组成。绪论部分主要阐述了索绪尔对于语言系统的看法。索绪尔认为语言系统具有自主性和形式化这两个特点。他把语言现象划分为“内部要素”和“外部要素”两部分,并以此作为语言研究的前提。“内部要素”是指语言系统内符号与符号之间所形成的相互制约、相互对立的关系;“外部要素”则是指与语言有间接关系的政治、经济、文化、宗教、地理、历史等社会因素。因为索绪尔认为“内部要素”与“外部要素”之间无联系,且进行语言研究必须建立起一个界限清晰的“语言系统”。所以,他说:“我们关于语言的定义是要把一切跟语言的组织、语言的系统无关的东西,简言之,一切跟我们用‘外部语言学’这个术语所指的东西排除出去。”另外,索绪尔还阐发了“语言符号的价值决定于语言系统整体性质”的观点,并将此观点以及上面所提及的观点合在一起,共同支撑起关于语言系统具有自主性的说法。实际上,此举的真正目的是为语言学的研究对象下定义,且以此厘清语言和言语之间的关系。 语言是言语行为的社会部分,是个人被动地从社会接受而储存于头脑中的系统。它存在于个人意志之外,是社会每个成员共同具有的,是一种社会心理现象。言语是言语行为的个人部分,是个人对语言系统的运用。语言和言语紧密相连,互为前提。个人要说话使人理解,必须用语言,同时语言的存在又必须体现在言语当中,而且,使语言发生变化的也是言语。所以,语言既是言语的工具,又是言语的产物,但“这并不妨碍它们是两种绝对不同的东西” 在对语言学进行概述之后,《普通语言学教程》的附录部分进一步详细叙述了索绪尔的音位观、符号观以及结构主义研究方法论。他认为语言可为语音符号和文字符号,语音由心灵激活而被赋予意义,文字则只是语音的无生命的、随意的、可有可无的替代物。在符号观中,索绪尔对符号的“任意性”和“线条性”展开阐述,并且重点论述了符号的“不变性”与“可变性”特点。由此他不但揭

新编语言学教程刘润清版1,2章复习大纲

CHAPTER 1 INTRODUCTION Definition : linguistics can be defined as the scientific or systematic study of language. It is always guided by the three cannons of science:exhaustiveness, consistency and economy. Linguistics Linguistics versus traditional grammar: Scope Microlinguistics Phonetics Phonology Morphology Syntax Semantics Pragmatics Macrolinguistics Sociolinguistics Psycholinguistics Neurolinguistics Stylistics Discourse analysis Computational linguistics Cognitive linguistics Definition: Ding-Dong Theory: human speech developed from primitive man giving vocal expression to the objects he encountered. Sing-Song Theory: language developed from primitive ritual songs of praise. Pooh-Pooh Theory: language came from interjections, which express he speaker ’s emotions. Origins Yo-He-Ho Theory: language came from the cries uttered, during strain of work. Ta-Ta Theory : language came from the combination of certain gestures and tongues movements. Bow-Wow Theory: language came from imitation of animal cries and other sounds heard in nature. Design features Linguistics describes languages and does not lay down rules of correctness while traditional grammar emphasizes correctness. Linguists regard the spoken language as primary, not the written while traditional grammar emphasizes the priority of written language. Traditional grammar is based on Latin and it tries to impose the Latin categories and structures on other languages. Linguistics describes each language on its language is a system of arbitrary vocal symbols used for human communication. Language is a system---elements in it are not arranged and combined randomly, but according to some rules and principles. Language is arbitrary --- there is no intrinsic connection between the word . pen) and the thing. what we write with).Language is vocal---the primary medium for all languages is sound. Language is used for human communication ---it is human-specific, very different form Arbitrarines s: this refers to the fact that there is no logical or intrinsic connection between a particular sound and the meaning it is associated with. For example, English should use the sounds/d?g/ to refer to the animal dog, but Chinese should use “gou ” to refer to te same animal. A dog may be called a pig if the first man happens to name it as a “pig ”. So, the relationship between the sounds and their meaning is quite accidental. Of course, onomatopoetic words such as “quack-quack ” and “bang ” are exceptions, but words these are relatively few compared withe the total number of words in language. Duality: language operates on two levels of structure. At one level are elements which have no meaning in themselves but which combine to form units at another level which do have meaning. Productivity : productivity or creativity refers to man ’s linguistic ability which enables him to produce and understand an infinitely large number of sentences in our native language, including the sentences which were never heard before. Interchangeability : interchangeability or reciprocity refers to the fact that man can both produce and receive messages, and his roles as a speaker and a hearer can be exchanged at ease. Displacement: displacement is a property of language enabling people to talk about things remote either in space or in time. Specialization : specialization refers to the fact that man does not have a total physical involvement in the act of communication. Cultural transmission : language is culturally transmitted. It cannot be transmitted through heredity. A human being brought up in isolations simply doesn ’t acquire language, as is demonstrated by the studies of children brought up by animals without human contact. Animals transmit their cries simply from parent to child, while human baby doesn ’t speak any language at birth. What language a baby is going to speak

新编简明英语语言学教程笔记

新编简明英语语言学教程笔记 Chapter one Introduction 一、定义 1.语言学Linguistics Linguistics is generally defined as the scientific study of language. 2.普通语言学General Linguistics The study of language as a whole is often called General linguistics. 3.语言language Language is a system of arbitrary vocal symbols used for human communication. 语言是人类用来交际的任意性的有声符号体系。 4.识别特征Design Features It refers to the defining poperties of human language that distinguish it from any animal system of communication. Arbitrariness任意性Productivity多产性Duality双重性Displacement移位性Cultural transmission文化传递 ⑴arbitrariness There is no logical connection between meanings and sounds. P.S the arbitrary nature of language is a sign of sophistication and it makes it possible for language to have an unlimited source of expressions ⑵Productivity Animals are quite limited in the messages they are able to send. ⑶Duality Language is a system, which consists of two sets of structures ,or two levels. ⑷Displacement Language can be used to refer to contexts removed from the immediate situations of the speaker. ⑸Cultural transmission Human capacity for language has a genetic basis, but we have to be taught and learned the details of any language system. this showed that language is culturally transmitted. not by instinct. animals are born with the capacity to produce the set of calls peculiar to their species. 二、知识点 https://www.360docs.net/doc/6610680088.html,nguage is not an isolated phenomenon, it‘s a social activity carried out in a certain social environment by human beings. 语言不是一种孤立的现象,而是人类在一定的社会环境下进行的一种社会活动。 ⑶曾经对语言概念下过定义的语言学家 Sapir---language is a purely human and non-instinctive method of communication ideas, emotions and desires by means of voluntarily produced symbols. Hall----language is the institution whereby humans communicate and interact with each other by means of habitually used oral-auditory arbitrary symbols. Chomsky---from now on I will consider language to be a set of sentences, each finite in length and constructed out of a finite set of elements. ⑷U.S.A Linguist Charles Hockett美国语言学家Charles Hockett 提出了语言的识别特征design features

戴伟栋语言学笔记(全)

Chapter 1 What is language? [A] The origins of language Some speculations of the origins of language: ①The divine source The basic hypothesis: if infants were allowed to grow up without hearing any language, then they would spontaneously begin using the original god-given language. Actually, children living without access to human speech in their early years grow up with no language at all. ②The natural-sound source The bow-wow theory: the suggestion is that primitive words could have been imitations of the natural sounds which early men and women heard around them. The “Yo-heave-ho” theory: the sounds produced by humans when exerting physical effort, especially when co-operating with other humans, may be the origins of speech sounds. Onomatopoeic sounds ③The oral-gesture source It is claimed that originally a set of physical gestures was developed as a means of communication. The patterns of movement in articulation would be the same as gestural movement; hence waving tongue would develop from

相关文档
最新文档