

SPLD Test
- Size
- 100 × 70 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 57
- Nets
- 94
- Pads
- 254
- Tracks, vias
- 681, 71
- Pours
- 1
- Routed
- Yes
- KiCad
- KiCad 9.0 (file 20241229)
- Created
- 25 Jan 2026
- Updated
- 30 Mar 2026
Overview
SPLD Test is an open-source printed circuit board by ttkpark, from the ttkpark/KicadArtwork repository on GitHub. It is a 2-layer board of 100 × 70 mm with 57 parts on 94 nets, routed with 681 tracks and 71 vias.
It is built around the EA8105T6R, EPM3064ALC44-10N and TP4056-42-ESOP8. Its parts include 31 resistors, 7 diodes, 5 ICs, 5 switches and 4 connectors. It belongs with the STM32 and FPGA and CPLD boards of this library.
Main components
3EA8105T6R
SOT-23-6-40℃~+125℃@(TJ) 1 1.5MHz 2.7V~5.5V 2A 40uA 600mV~5.5V Adjustable Buck Buck Built-in Yes SOT-23-6 DC-DC Converters ROHSEveranalog IC designDC-DC ConvertersEPM3064ALC44-10N
PLCC-44(16.6x16.6x1.27)PLCC-44(16.6x16.6x1.27) New Arrivals ROHSIntel/AlteraUncategorisedTP4056-42-ESOP8
ESOP-8-40℃~+85℃ 1 1A 2uA 4.2V 4V~8V Charging IC Lithium Battery Support ESOP-8 Battery Management ROHSTOPPOWERBattery Management
README
SPLD_Test/README.mdCPLD-STM32 UI Controller & FND Multiplexer
📌 프로젝트 개요
본 프로젝트는 Altera MAX 3000A(EPM3064) CPLD를 활용하여 메인 MCU(STM32F030)의 부하를 줄이기 위한 하드웨어 UI 컨트롤러를 구현한 설계입니다.
버튼 입력의 디바운싱(Debouncing), 0~31 양방향 카운터, 그리고 4-Digit 7-Segment(FND)의 다이나믹 구동(Multiplexing)을 CPLD 하드웨어 로직으로 분리 처리합니다.
🛠️ 개발 환경 및 하드웨어 사양
- Target Device: Altera MAX 3000A 계열 (
EPM3064ALC44-10) - Main MCU: STM32F030
- IDE: Quartus II 13.0 SP1 Web Edition
- Clock Source: STM32에서 공급하는 8kHz 외부 클럭 (
IO33)
🎯 주요 기능 (Core Features)
-
하드웨어 디바운싱 (Debouncing)
- 8kHz 클럭 기반으로 약 18.7ms 딜레이 필터 구현
- 버튼 채터링을 소프트웨어 개입 없이 하드웨어에서 차단
-
5-bit 양방향 카운터 (0~31)
BTN1입력 시 -1 감소 (0에서 31 순환)BTN2,BTN4입력 시 +1 증가 (31에서 0 순환)
-
경량화된 BCD 변환 로직
- EPM3064 매크로셀(64) 한계를 고려해 나눗셈/Double Dabble 대신
if-else기반 최적화된 뺄셈 로직으로 10의 자리/1의 자리 분리
-
FND 다이나믹 멀티플렉싱
- 8kHz를 32분주하여 약 250Hz로 4자리 Common Anode 순차 구동
-
실시간 MCU 상태 보고
- 카운터 5비트 상태(0~31)를 전용 I/O 핀 5개로 STM32에 비동기 전달
🔌 핀맵 할당 (Pin Mapping)
| 기능 그룹 | 신호명 | CPLD 핀 번호 | 비고 |
|---|---|---|---|
| Clock | clk_8khz | 33 | STM32에서 공급받는 8kHz 클럭 |
| Button Input | btn1 | 1 | -1 감소 (Active Low) |
btn2 | 2 | +1 증가 (Active Low) | |
btn4 | 4 | +1 증가 (Active Low) | |
| MCU Output | mcu_28 ~ mcu_37 | 28, 29, 31, 34, 37 | 카운터 5비트 상태 실시간 출력 |
| FND Segment | seg_a ~ dp | 5, 6, 8, 9, 11, 12, 14, 16 | 7-Segment 제어 (Active Low) |
| FND Common | com1 ~ com4 | 18, 19, 20, 21 | 자릿수 제어 (Active High) |
⚠️ 주의 (하드웨어 핀맵 제약사항)
3번 핀은 VCC와 물리적으로 결선되어 있어 버튼 입력으로 사용하지 않습니다.
🚨 트러블슈팅 및 개발 가이드 (Lessons Learned)
프로젝트 수정/업로드 시 아래 항목을 반드시 확인하세요.
1) 98% 프로그래밍 실패(Verification Failed)
- 원인: Verify 단계에서 JTAG 핀(TDI, TMS 등)에 연결된 외부 소자(FND 등)가 노이즈를 유발
- 해결책:
- 프로그래밍 시 FND 모듈을 일시적으로 탈거한 상태에서 업로드
- 임시 조치로 Programmer에서
Verify체크 해제 후 다운로드
2) 미사용 핀 설정 (Unused Pins Configuration)
- 원인: Quartus 기본값이 미사용 핀을
As output driving ground로 설정해 전원 충돌 가능 - 해결책:
Assignments -> Device -> Device and Pin Options -> Unused Pins- 값을
As input tri-stated로 변경 후 전체 컴파일
3) 디바이스 라이브러리 지원
- MAX 3000A는 최신 Quartus Prime에서 미지원
- Quartus II 13.0 SP1 Web Edition 사용
- Device Installer에서
MAX 3000A디바이스 팩(.qdz) 추가 설치 필요
📁 저장소 구조(예시)
SPLD_Test/
├─ CPLD/ # Quartus 프로젝트/소스
├─ firmware/ # STM32F030 펌웨어 (OLED 모니터)
└─ README.md # 본 문서🔗 관련 문서
- 펌웨어 배선/핀 설명:
firmware/docs/CONNECTIONS.md - 펌웨어 개발 문서:
firmware/docs/DEVELOPMENT.md
🙌 회고
하드웨어 핀맵 충돌, JTAG 간섭, 매크로셀 용량 최적화를 모두 통과해 완성한 프로젝트입니다.
임베디드 하드웨어/펌웨어 협업 개발의 실제 제약과 해법이 담긴 결과물로, 유지보수 시 본 README와 관련 문서를 함께 참고하는 것을 권장합니다.
Parts
57| Qty | Value | Footprint | References |
|---|---|---|---|
| 14 | 1K5 | Resistor_SMD:R_0603_1608Metric | R1, R2, R5, R10, R11, R12, R13, R14, R15, R16, R17, R18, R20, R21 |
| 11 | 10k | Resistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolder | R22, R23, R24, R25, R26, R27, R28, R29, R30, R31, R32 |
| 5 | RED | LED_SMD:LED_0603_1608Metric | D3, D4, D5, D7, D8 |
| 4 | SW_MEC_5E | Button_Switch_THT:SW_PUSH_6mm_H4.3mm | SW2, SW3, SW4, SW5 |
| 2 | 1k | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R6, R8 |
| 2 | 47u | Capacitor_SMD:CP_Elec_6.3x5.7 | C2, C3 |
| 2 | 5K1 | Resistor_SMD:R_0603_1608Metric | R3, R4 |
| 1 | 10u | Inductor_SMD:L_7.3x7.3_H3.5 | L1 |
| 1 | 2.35k | Resistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolder | R7 |
| 1 | 3.7V | Connector_Molex:Molex_PicoBlade_53048-0210_1x02_P1.25mm_Horizontal | BT1 |
| 1 | 47u | Capacitor_SMD:C_1206_3216Metric | C1 |
| 1 | 76.9R | Resistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolder | R9 |
| 1 | CA56-12CGKWA | Display_7Segment:CA56-12CGKWA | U5 |
| 1 | Charge | LED_SMD:LED_0603_1608Metric | D1 |
| 1 | EA8105 | Package_TO_SOT_SMD:SOT-23-6 | U3 |
| 1 | EPM3064ALC44-10N | Package_LCC:PLCC-44_THT-Socket | U4 |
| 1 | Microsemi_FlashPro-JTAG-10 | Connector_IDC:IDC-Header_2x05_P2.54mm_Vertical | J6 |
| 1 | SPI OLED 1.3in | Connector_PinSocket_2.54mm:PinSocket_1x07_P2.54mm_Vertical | J2 |
| 1 | STM32F030K6Tx | Package_QFP:LQFP-32_7x7mm_P0.8mm | U2 |
| 1 | SWD | Connector_PinSocket_2.54mm:PinSocket_1x06_P2.54mm_Vertical | J4 |
| 1 | SW_SPDT | Connector_Molex:Molex_Micro-Fit_3.0_43650-0315_1x03_P3.00mm_Vertical | SW1 |
| 1 | Standby | LED_SMD:LED_0603_1608Metric | D2 |
| 1 | TP4056-42-ESOP8 | Package_SO:SOIC-8-1EP_3.9x4.9mm_P1.27mm_EP2.41x3.3mm_ThermalVias | U1 |
| 1 | USB_C_Receptacle_PowerOnly_6P | Connector_USB:USB_C_Receptacle_GCT_USB4125-xx-x-0190_6P_TopMnt_Horizontal | J1 |
More from ttkpark/KicadArtwork
4Similar boards
- 2 layers53.8 × 66 mm

FCD-0022
RWeick/GBA-Codebreaker-and-Xploder-SP-FCD-0022
The full schematic, PCB, and flash dump of the GBA Codebreaker and Xploder SP.
33 parts6GPL-3.0 - 2 layers60 × 111.3 mm

Silkscreen pcb
iandchasse/silkscreen-pcb
Silkscreen: open-hardware ESP32-S3 e-paper reader mainboard (KiCad 9). Formerly the de-link hub.
189 parts589CERN-OHL-S-2.0 - 2 layers96.8 × 91.4 mm

- 2 layers51 × 21 mm

FOX JACK EXT BOARD TOP
KaliAssistant/Fox-Jack
Portable social-engineering LAN tool for automated payloads and wired audits — based on Luckfox Pico Max
35 parts22GPL-3.0 - 2 layers31.3 × 67 mm

- 4 layers88 × 58 mm

- 2 layers210 × 31 mm

Trhw
nimitvijayvargee/trhw
This is an RP2040 ruler that implements wifi, bluetooth, BLE along with a 4MB Flash storage, LEDs, Input buttons and some cool units and lengths!
59 parts8 - 2 layers78 × 36 mm

Bt nes advantage pcb
cajunpanda/bluetooth-nes-advantage
A bluetooth mod for the NES Advantage classic controller.
45 parts7MIT
Questions
How big is the SPLD Test PCB?
It measures 100 × 70 mm and has 2 copper layers, 1.6 mm thick.
What parts does the SPLD Test use?
57 parts, built around the EA8105T6R, EPM3064ALC44-10N and TP4056-42-ESOP8. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
Where can I download the SPLD Test KiCad files?
From the ttkpark/KicadArtwork repository on GitHub, at the commit this page was made from: the board is SPLD_Test/SPLD_Test.kicad_pcb and its schematic SPLD_Test/333/333.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the SPLD Test design in my own project?
Its repository states no licence, so its author keeps all rights: ask ttkpark before reusing the design.


