1 2# GD32L233XX pin definitions 3# 4# Sources: 5# - GD32L233XX Datasheet (Revision 1.2) 6# 7# Pin codes: 8# 9# - 32 pins: Q (GD32L233Kx-QFN32) 10# - 32 pins: K (GD32L233Kx-LQFP32) 11# - 48 pins: C 12# - 64 pins: R 13# 14# Memory codes: 15# 16# - 64Kb Flash, 16Kb SRAM: 8 17# - 128Kb Flash, 24Kb SRAM: B 18# - 256Kb Flash, 32Kb SRAM: C 19# 20# Copyright (c) 2021 BrainCo Inc. 21# SPDX-License-Identifier: Apache 2.0 22 23model: af 24 25series: gd32l233 26 27variants: 28 - pincode: Q 29 memories: [8, B] 30 - pincode: K 31 memories: [8, B] 32 - pincode: C 33 memories: [8] 34 - pincode: C 35 memories: [B, C] 36 - pincode: R 37 memories: [8] 38 - pincode: R 39 memories: [B, C] 40 41signal-configs: 42 COM0: 43 exclude-pincodes: [Q, K, C] 44 COM1: 45 exclude-pincodes: [Q, K, C] 46 COM2: 47 exclude-pincodes: [Q, K, C] 48 COM3: 49 exclude-pincodes: [Q, K, C] 50 COM4: 51 exclude-pincodes: [Q, K, C] 52 COM5: 53 exclude-pincodes: [Q, K, C] 54 COM6: 55 exclude-pincodes: [Q, K, C] 56 COM7: 57 exclude-pincodes: [Q, K, C] 58 I2C1_SMBA: 59 exclude-pincodes: [Q, K] 60 I2C2_SCL: 61 exclude-pincodes: [Q, K, C] 62 I2C2_SDA: 63 exclude-pincodes: [Q, K, C] 64 I2C2_SMBA: 65 exclude-pincodes: [Q, K, C] 66 SEG0: 67 exclude-pincodes: [Q, K, C] 68 SEG1: 69 exclude-pincodes: [Q, K, C] 70 SEG10: 71 exclude-pincodes: [Q, K, C] 72 SEG11: 73 exclude-pincodes: [Q, K, C] 74 SEG12: 75 exclude-pincodes: [Q, K, C] 76 SEG13: 77 exclude-pincodes: [Q, K, C] 78 SEG14: 79 exclude-pincodes: [Q, K, C] 80 SEG15: 81 exclude-pincodes: [Q, K, C] 82 SEG16: 83 exclude-pincodes: [Q, K, C] 84 SEG17: 85 exclude-pincodes: [Q, K, C] 86 SEG18: 87 exclude-pincodes: [Q, K, C] 88 SEG19: 89 exclude-pincodes: [Q, K, C] 90 SEG2: 91 exclude-pincodes: [Q, K, C] 92 SEG20: 93 exclude-pincodes: [Q, K, C] 94 SEG21: 95 exclude-pincodes: [Q, K, C] 96 SEG22: 97 exclude-pincodes: [Q, K, C] 98 SEG23: 99 exclude-pincodes: [Q, K, C] 100 SEG24: 101 exclude-pincodes: [Q, K, C] 102 SEG25: 103 exclude-pincodes: [Q, K, C] 104 SEG26: 105 exclude-pincodes: [Q, K, C] 106 SEG27: 107 exclude-pincodes: [Q, K, C] 108 SEG28: 109 exclude-pincodes: [Q, K, C] 110 SEG29: 111 exclude-pincodes: [Q, K, C] 112 SEG3: 113 exclude-pincodes: [Q, K, C] 114 SEG30: 115 exclude-pincodes: [Q, K, C] 116 SEG31: 117 exclude-pincodes: [Q, K, C] 118 SEG4: 119 exclude-pincodes: [Q, K, C] 120 SEG5: 121 exclude-pincodes: [Q, K, C] 122 SEG6: 123 exclude-pincodes: [Q, K, C] 124 SEG7: 125 exclude-pincodes: [Q, K, C] 126 SEG8: 127 exclude-pincodes: [Q, K, C] 128 SEG9: 129 exclude-pincodes: [Q, K, C] 130 TIMER11_CH0: 131 exclude-pincodes: [Q, K] 132 exclude-memories: [8] 133 TIMER11_CH1: 134 exclude-pincodes: [Q, K] 135 exclude-memories: [8] 136 TIMER2_ETI: 137 exclude-pincodes: [Q, K, C] 138 UART4_RX: 139 exclude-pincodes: [Q, K] 140 exclude-memories: [8] 141 UART4_TX: 142 exclude-pincodes: [Q, K] 143 exclude-memories: [8] 144 145pins: 146 PA0: 147 afs: 148 ADC_IN0: ANALOG 149 CMP0_OUT: 6 150 EVENTOUT: 9 151 TIMER1_CH0_ETI: 1 152 UART3_TX: 8 153 USART1_CTS: 7 154 pincodes: [Q, K, C, R] 155 PA1: 156 afs: 157 ADC_IN1: ANALOG 158 EVENTOUT: 9 159 I2C0_SMBA: 4 160 SEG0: 3 161 SPI0_SCK: 5 162 TIMER1_CH1: 1 163 UART3_RX: 8 164 USART1_DE: 7 165 USART1_RTS: 7 166 pincodes: [Q, K, C, R] 167 PA10: 168 afs: 169 COM2: 3 170 EVENTOUT: 9 171 I2C0_SDA: 4 172 USART0_RX: 7 173 pincodes: [Q, K, C, R] 174 PA11: 175 afs: 176 CMP0_OUT: 6 177 EVENTOUT: 9 178 SPI0_MISO: 5 179 USART0_CTS: 7 180 pincodes: [Q, K, C, R] 181 PA12: 182 afs: 183 CMP1_OUT: 6 184 EVENTOUT: 9 185 SPI0_MOSI: 5 186 USART0_DE: 7 187 USART0_RTS: 7 188 pincodes: [Q, K, C, R] 189 PA13: 190 afs: 191 EVENTOUT: 9 192 I2C0_SCL: 4 193 LPUART_RX: 2 194 SPI0_IO2: 5 195 SPI0_NSS: 6 196 SWDIO: 0 197 USART0_TX: 7 198 pincodes: [Q, K, C, R] 199 PA14: 200 afs: 201 EVENTOUT: 9 202 I2C0_SDA: 4 203 I2S1_WS: 6 204 LPUART_TX: 2 205 SPI0_IO3: 5 206 SPI1_NSS: 6 207 SWCLK: 0 208 USART0_RX: 7 209 USART1_TX: 8 210 pincodes: [Q, K, C, R] 211 PA15: 212 afs: 213 EVENTOUT: 9 214 I2S1_WS: 6 215 SEG17: 3 216 SPI0_NSS: 5 217 SPI1_NSS: 6 218 TIMER1_CH0_ETI: 1 219 USART1_RX: 7 220 pincodes: [Q, K, C, R] 221 PA2: 222 afs: 223 ADC_IN2: ANALOG 224 CMP1_OUT: 6 225 EVENTOUT: 9 226 LPUART_TX: 8 227 SEG1: 3 228 SPI0_IO2: 5 229 TIMER1_CH2: 1 230 TIMER8_CH0: 2 231 USART1_TX: 7 232 pincodes: [Q, K, C, R] 233 PA3: 234 afs: 235 ADC_IN3: ANALOG 236 EVENTOUT: 9 237 LPUART_RX: 8 238 SEG2: 3 239 SPI0_IO3: 5 240 TIMER1_CH3: 1 241 TIMER8_CH1: 2 242 USART1_RX: 7 243 pincodes: [Q, K, C, R] 244 PA4: 245 afs: 246 ADC_IN4: ANALOG 247 DAC_OUT: ANALOG 248 EVENTOUT: 9 249 I2S1_WS: 6 250 LPTIMER_OUT: 2 251 SPI0_NSS: 5 252 SPI1_NSS: 6 253 USART1_CK: 7 254 pincodes: [Q, K, C, R] 255 PA5: 256 afs: 257 ADC_IN5: ANALOG 258 EVENTOUT: 9 259 LPTIMER_ETI0: 2 260 SPI0_SCK: 5 261 TIMER1_CH0_ETI: 1 262 pincodes: [Q, K, C, R] 263 PA6: 264 afs: 265 ADC_IN6: ANALOG 266 CMP0_OUT: 6 267 EVENTOUT: 9 268 LPTIMER_IN0: 2 269 LPUART_CTS: 8 270 SEG3: 3 271 SPI0_MISO: 5 272 TIMER2_CH0: 1 273 pincodes: [Q, K, C, R] 274 PA7: 275 afs: 276 ADC_IN7: ANALOG 277 CMP1_OUT: 6 278 EVENTOUT: 9 279 I2C2_SCL: 4 280 LPTIMER_ETI0: 2 281 SEG4: 3 282 SPI0_MOSI: 5 283 TIMER2_CH1: 1 284 pincodes: [Q, K, C, R] 285 PA8: 286 afs: 287 CK_OUT: 0 288 COM0: 3 289 CTC_SYNC: 8 290 EVENTOUT: 9 291 I2C2_SMBA: 4 292 LPTIMER_OUT: 2 293 USART0_CK: 7 294 pincodes: [Q, K, C, R] 295 PA9: 296 afs: 297 CK_OUT: 0 298 COM1: 3 299 EVENTOUT: 9 300 I2C0_SCL: 4 301 LPTIMER_IN1: 2 302 USART0_TX: 7 303 pincodes: [Q, K, C, R] 304 PB0: 305 afs: 306 ADC_IN8: ANALOG 307 CMP0_OUT: 6 308 EVENTOUT: 9 309 LPTIMER_OUT: 2 310 SEG5: 3 311 SPI0_NSS: 5 312 TIMER2_CH2: 1 313 pincodes: [Q, K, C, R] 314 PB1: 315 afs: 316 ADC_IN9: ANALOG 317 EVENTOUT: 9 318 LPTIMER_IN0: 2 319 LPUART_RTS: 8 320 SEG6: 3 321 TIMER2_CH3: 1 322 pincodes: [Q, K, C, R] 323 PB10: 324 afs: 325 CMP0_OUT: 6 326 EVENTOUT: 9 327 I2C1_SCL: 4 328 I2S1_CK: 5 329 LPUART_RX: 8 330 LPUART_TX: 7 331 SEG10: 3 332 SPI1_SCK: 5 333 TIMER1_CH2: 1 334 pincodes: [C, R] 335 PB11: 336 afs: 337 CMP1_OUT: 6 338 EVENTOUT: 9 339 I2C1_SDA: 4 340 LPUART_RX: 7 341 LPUART_TX: 8 342 SEG11: 3 343 TIMER1_CH3: 1 344 pincodes: [C, R] 345 PB12: 346 afs: 347 EVENTOUT: 9 348 I2C1_SMBA: 4 349 I2S1_WS: 6 350 LPUART_RTS: 8 351 SEG12: 3 352 SPI1_NSS: 6 353 pincodes: [C, R] 354 PB13: 355 afs: 356 CK_OUT: 0 357 EVENTOUT: 9 358 I2C1_SCL: 4 359 I2S1_CK: 6 360 LPUART_CTS: 8 361 SEG13: 3 362 SPI1_SCK: 6 363 pincodes: [C, R] 364 PB14: 365 afs: 366 EVENTOUT: 9 367 I2C1_SDA: 4 368 LPUART_RTS: 8 369 RTC_OUT: 0 370 SEG14: 3 371 SPI1_MISO: 6 372 TIMER11_CH0: 2 373 pincodes: [C, R] 374 PB15: 375 afs: 376 EVENTOUT: 9 377 I2S1_SD: 6 378 SEG15: 3 379 SPI1_MOSI: 6 380 TIMER11_CH1: 2 381 pincodes: [C, R] 382 PB2: 383 afs: 384 EVENTOUT: 9 385 LPTIMER_OUT: 2 386 RTC_OUT: 0 387 pincodes: [Q, K, C, R] 388 PB3: 389 afs: 390 EVENTOUT: 9 391 I2S1_CK: 6 392 LPTIMER_IN1: 2 393 SEG7: 3 394 SPI0_SCK: 5 395 SPI1_SCK: 6 396 TIMER1_CH1: 1 397 UART4_TX: 8 398 USART0_DE: 7 399 USART0_RTS: 7 400 pincodes: [Q, K, C, R] 401 PB4: 402 afs: 403 EVENTOUT: 9 404 SEG8: 3 405 SPI0_MISO: 5 406 SPI1_MISO: 6 407 TIMER2_CH0: 1 408 UART4_RX: 8 409 USART0_CTS: 7 410 pincodes: [Q, K, C, R] 411 PB5: 412 afs: 413 CMP1_OUT: 8 414 EVENTOUT: 9 415 I2C0_SMBA: 4 416 I2S1_SD: 6 417 LPTIMER_IN0: 2 418 SEG9: 3 419 SPI0_MOSI: 5 420 SPI1_MOSI: 6 421 TIMER2_CH1: 1 422 USART0_CK: 7 423 pincodes: [Q, K, C, R] 424 PB6: 425 afs: 426 EVENTOUT: 9 427 I2C0_SCL: 4 428 I2C1_SCL: 8 429 LPTIMER_ETI0: 2 430 SPI0_IO2: 5 431 USART0_TX: 7 432 pincodes: [Q, K, C, R] 433 PB7: 434 afs: 435 EVENTOUT: 9 436 I2C0_SDA: 4 437 I2C1_SDA: 8 438 SPI0_IO3: 5 439 USART0_RX: 7 440 pincodes: [Q, K, C, R] 441 PB8: 442 afs: 443 CMP0_OUT: 6 444 EVENTOUT: 9 445 I2C0_SCL: 4 446 I2C1_SCL: 8 447 SEG16: 3 448 pincodes: [C, R] 449 PB9: 450 afs: 451 CMP1_OUT: 6 452 COM3: 3 453 EVENTOUT: 9 454 I2C0_SDA: 4 455 I2C1_SDA: 8 456 I2S1_WS: 5 457 SPI1_NSS: 5 458 pincodes: [C, R] 459 PC0: 460 afs: 461 ADC_IN10: ANALOG 462 EVENTOUT: 9 463 I2C2_SCL: 4 464 LPTIMER_IN0: 2 465 LPUART_RX: 8 466 SEG18: 3 467 pincodes: [R] 468 PC1: 469 afs: 470 ADC_IN11: ANALOG 471 EVENTOUT: 9 472 I2C2_SDA: 4 473 LPTIMER_OUT: 2 474 LPUART_TX: 8 475 SEG19: 3 476 pincodes: [R] 477 PC10: 478 afs: 479 COM4: 3 480 EVENTOUT: 9 481 I2S1_CK: 5 482 LPUART_TX: 8 483 SEG28: 3 484 SPI1_SCK: 5 485 UART3_TX: 7 486 pincodes: [C, R] 487 PC11: 488 afs: 489 COM5: 3 490 EVENTOUT: 9 491 LPUART_RX: 8 492 SEG29: 3 493 SPI1_MISO: 5 494 UART3_RX: 7 495 pincodes: [C, R] 496 PC12: 497 afs: 498 COM6: 3 499 EVENTOUT: 9 500 I2S1_SD: 5 501 SEG30: 3 502 SPI1_MOSI: 5 503 UART4_TX: 7 504 pincodes: [C, R] 505 PC13: 506 afs: 507 EVENTOUT: 9 508 pincodes: [C, R] 509 PC14: 510 afs: 511 EVENTOUT: 9 512 pincodes: [Q, C, R] 513 PC15: 514 afs: 515 EVENTOUT: 9 516 pincodes: [Q, C, R] 517 PC2: 518 afs: 519 ADC_IN12: ANALOG 520 EVENTOUT: 9 521 I2S1_MCK: 6 522 LPTIMER_IN1: 2 523 SEG20: 3 524 SPI1_MISO: 5 525 pincodes: [R] 526 PC3: 527 afs: 528 ADC_IN13: ANALOG 529 EVENTOUT: 9 530 I2S1_SD: 5 531 LPTIMER_ETI0: 2 532 SEG21: 3 533 SPI1_MOSI: 5 534 pincodes: [R] 535 PC4: 536 afs: 537 ADC_IN14: ANALOG 538 EVENTOUT: 9 539 LPUART_TX: 8 540 SEG22: 3 541 TIMER1_CH0_ETI: 1 542 USART0_TX: 7 543 pincodes: [R] 544 PC5: 545 afs: 546 ADC_IN15: ANALOG 547 EVENTOUT: 9 548 LPUART_RX: 8 549 SEG23: 3 550 TIMER1_CH1: 1 551 USART0_RX: 7 552 pincodes: [R] 553 PC6: 554 afs: 555 EVENTOUT: 9 556 I2S1_MCK: 5 557 SEG24: 3 558 TIMER2_CH0: 1 559 pincodes: [C, R] 560 PC7: 561 afs: 562 EVENTOUT: 9 563 SEG25: 3 564 TIMER2_CH1: 1 565 pincodes: [C, R] 566 PC8: 567 afs: 568 EVENTOUT: 9 569 I2C2_SDA: 4 570 SEG26: 3 571 TIMER2_CH2: 1 572 pincodes: [R] 573 PC9: 574 afs: 575 EVENTOUT: 9 576 I2C2_SCL: 4 577 SEG27: 3 578 TIMER2_CH3: 1 579 pincodes: [R] 580 PD0: 581 afs: 582 CTC_SYNC: 8 583 EVENTOUT: 9 584 I2S1_WS: 6 585 LPTIMER_OUT: 2 586 SPI1_NSS: 6 587 USART1_CK: 7 588 pincodes: [R] 589 PD1: 590 afs: 591 EVENTOUT: 9 592 I2S1_CK: 6 593 SPI1_MISO: 5 594 SPI1_SCK: 6 595 USART1_CTS: 7 596 pincodes: [R] 597 PD2: 598 afs: 599 COM7: 3 600 EVENTOUT: 9 601 LPUART_RTS: 8 602 SEG31: 3 603 TIMER2_ETI: 1 604 UART4_RX: 7 605 pincodes: [R] 606 PD3: 607 afs: 608 I2S1_MCK: 6 609 SPI1_MISO: 5 610 USART1_CTS: 7 611 pincodes: [Q, K, C, R] 612 PD4: 613 afs: 614 EVENTOUT: 9 615 I2S1_SD: 5 616 SEG28: 3 617 SPI1_MOSI: 5 618 USART1_DE: 7 619 USART1_RTS: 7 620 pincodes: [R] 621 PD5: 622 afs: 623 EVENTOUT: 9 624 SEG29: 3 625 SPI0_MISO: 5 626 USART1_TX: 7 627 pincodes: [R] 628 PD6: 629 afs: 630 EVENTOUT: 9 631 LPTIMER_IN1: 2 632 SPI0_MOSI: 5 633 USART1_RX: 7 634 pincodes: [R] 635 PD8: 636 afs: 637 EVENTOUT: 9 638 LPTIMER_ETI0: 2 639 LPUART_TX: 8 640 SEG30: 3 641 pincodes: [R] 642 PD9: 643 afs: 644 EVENTOUT: 9 645 LPTIMER_IN0: 2 646 LPUART_RX: 8 647 SEG31: 3 648 pincodes: [R] 649 PF0: 650 afs: 651 EVENTOUT: 9 652 I2S1_WS: 5 653 SPI1_NSS: 5 654 pincodes: [Q, K, C, R] 655 PF1: 656 afs: 657 EVENTOUT: 9 658 I2S1_CK: 5 659 SPI1_SCK: 5 660 pincodes: [Q, K, C, R] 661 662