2025년 8월 15일 금요일

HT68F002 (holtek = 홀텍 계열 칩) (HT-IDE3000)



HT68F002


https://www.alldatasheet.co.kr/datasheet-pdf/view/947087/HOLTEK/HT68F002.html

▲데이터시트 50쪽 I/O 참고


포트는 PA0, 1, 2, 5, 6, 7




이런데 들어가는 칩이다.

어셈블리어로 코드 짜야한다고 함


https://holtek.com.cn/webapi/106680/HOPE5000_User_Guide_EN.pdf

코드짜는데 필요한 User Guide


 https://www.holtek.com/page/tool-detail/ice/i_32/HT32-IDE 홀텍 계열칩 프로그램 짜는 IDE 다운로드 링크 (▲32비트) https://www.holtek.com/page/tool-detail/ice/i_8/c_compiler (▲8비트)




https://www.bestmodulescorp.com/en/dev28ssop185.html?srsltid=AfmBOooomjTV2dOYMO7NjLAqci4GibZ9Lj6VwwMgqj7NoCdPE8TypHm5






HT-IDE3000 을 설치하면 된다.



프로젝트를 새로 생성해보니 ASM, C 둘다 가능하다고 뜹니다.





여기까지 OK를 하면 코드를 짤수있는 단계로 넘어간다


Shift+F8 : 컴파일 단축키



==============================================================

https://www.instructables.com/Getting-Started-With-Holtek-Microcontrollers/

샘플코드 참조 사이트


https://cika.com/soporte/Information/Holtek/Microcontrollers/8-bit/DevTools/HT-IDE3000_ProgrammersGuideClanguage.pdf

샘플코드

(31쪽 Error 없음)

▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼

#include "HT68F002.h"


void error()

{

_delay(0); //infinite loop, same as while(1);

}


void dotest(){

unsigned int ui;

ui = 0x1;

_rr(&ui); //rotate right

if (ui != (unsigned int)0x80) error();

ui = 0xab;

_swap(&ui);

if (ui != (unsigned int)0xba) error();

}

void main(){

unsigned int i;

for(i=0; i<100; i++){

_clrwdt();

_delay(10); //delay 10 instruction cycle

dotest();

}

}

▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲


Traffic Light (LED Test)

(66쪽, 69쪽(스위치추가)), 77쪽(버튼여러개,버저1개)



댓글 없음:

댓글 쓰기