geekhack Projects > Making Stuff Together!

TMK IBM PC Keyboard Converter

<< < (46/47) > >>

@hasu: Why is using the USART interface not the recommended method any more?
Is there any inherent drawback with it compared to the interrupt method?


--- Quote from: Findecanor on Thu, 16 December 2021, 12:08:47 ---@hasu: Why is using the USART interface not the recommended method any more?
Is there any inherent drawback with it compared to the interrupt method?

--- End quote ---

With USART method it is not possible to suppport both AT and XT, and to handle keyboards with weird signaling.
You can't use USART method for IBM PC converter for these reasons.

I was working on these for debug my code. I hope these may be useful for someone too.

Sigrok Decoder
You can use this protocol deocoder with sigrok PulseView to see commands and data for debug. The docoder supports only AT protocol, not XT at this time.

Cheap $10-20 logic analyzer that is compatible with sigrok works well for this job. Get one and try. 1MHz sample rate is actually good enough for the protocol.

Or instead of using logic analyzer you can use 'Signal Capture' firmware on your converter hardware to capture signal(this won't always work). See below.

Signal Capture Firmware
With this firmware you can capture signals from keyboards without logic analzyer.

I want to let you know that I am having an issue with the Z150 AT. The online configuration tool is working well, but when I compile from the source code, the keyboard is not working and is stuck in a permanent loop. Here is what I see after flashing from a hex I created myself. The thing is that the online configuration tool is working just fine.

--- Code: ---Loop start.
    I173 I173 I174 I174 I174 I174 I174 I174 I175 I175 I175 I175 I176 I176 I176 I176 I176 I177 I177 I177 I177 I177 I178 I178 I178 I178 I178 I179 I179 I179 I180 I180 I180 I180 I180 I181 I181 I181 I181 I182 I182 I182 I183 I183 I183 I184 I18I193 I193 I193 I193 I193 I194 I194 I194 I194 I195 I195 I195 I195 I196 I196 I196 I196 I196 I197 I197 I197 I197 I197 I198 I198 I198 I198 I199 I199 I199 I199 I199 I200 I200 I200 I200 I200 I201 I201 I201 I201 I202 I202 I202 I202 I202 I203 I203 I203 I203 I203 I204 I204 I204 I204 I204 I205 I205 I205 I205 I206 I206 I206 I206 I206 I207 I207 I207 I207 I207 I208 I208 I208 I208 I209 I209 I209 I209 I210 I210 I210 I210 I210 I210 I211 I211 I211 I211 I212 I212 I212 I212 I212 I213 I213 I213 I213 I214 I214 I214 I214 I214 I215 I215 I215 I215 I215 I216 I216 I216 I216 I217 I217 I217 I217 I217 I218 I218 I218 I218 I218 I219 I219 I219 I219 I220 I220 I220 I220 I220 I221 I221 I221 I221 I221 I222 I222 I222 I222 I223 I223 I223 I223 I223 I224 I224 I224 I224 I225 I225 I225 I225 I225 I226 I226 I226 I226 I226 I227 I227 I227 I227 I228 I228 I228 I228 I228 I229 I229 I229 I229 I229 I230 I230 I230 I230 I231 I231 I231 I231 I231 I232 I232 I232 I232 I232 I233 I233 I233 I233 I234 I234 I234 I234 I234 I235 I235 I235 I235 I235 I236 I236 I236 I236 I237 I237 I237 I237 I237 I238 I238 I238 I238 I238 I239 I239 I239 I239 I240 I240 I240 I240 I240 I241 I241 I241 I241 I241 I242 I242 I242 I242 I243 I243 I243 I243 I243 I244 I244 I244 I244 I244 I245 I245 I245 I245 I246 I246 I246 I246 I246 I247 I247 I247 I247 I247 I248 I248 I248 I248 I249 I249 I249 I249 I249 I250 I250 I250 I250 I250 I251 I251 I251 I251 I252 I252 I252 I252 I252 I253 I253 I253 I253 I253 I254 I254 I254 I254 I255 I255 I255 I255 I255 I256 I256 I256 I256 I256 I257 I257 I257 I257 I258 I258 I258 I258 I258 I259 I259 I259 I259 I259 I260 I260 I260 I260 I261 I261 I261 I261 I261 I262 I262 I262 I262 I262 I263 I263 I263 I263 I264 I264 I264 I264 I264 I265 I265 I265 I265 I265 I266 I266 I266 I266 I267 I267 I267 I267 I267 I268 I268 I268 I268 I269 I269 I269 I269 I269 I270 I270 I270 I270 I270 I271 I271 I271 I271 I272 I272 I272 I272 I272 I273 I273 I273 I273 I273 I274 I274 I274 I274 I275 I275 I275 I275 I275 I276 I276 I276 I276 I276 I277 I277 I277 I277 I277 I278 I278 I278 I278 I279 I279 I279 I279 I280 I280 I280 I280 I280 I280 I281 I281 I281 I281 I282 I282 I282 I282 I282 I283 I283 I283 I283 I284 I284 I284 I284 I284 I285 I285 I285 I285 I285 I286 I286 I286 I286 I287 I287 I287 I287 I287 I288 I288 I288 I288 I288 I289 I289 I289 I289 I290 I290 I290 I290 I290 I291 I291 I291 I291 I291 I292 I292 I292 I292 I293 I293 I293 I293 I293 I294 I294 I294 I294 I295 I295 I295 I295 I295 I296 I296 I296 I296 I296 I297 I297 I297 I297 I298 I298 I298 I298 I298 I299 I299 I299 I299 I299 I300 I300 I300 I300 I301 I301 I301 I301 I301 I302 I302 I302 I302 I302 I303 I303 I303 I303 I304 I304 I304 I304 I304 I305 I305 I305 I305 I305 I306 I306 I306 I306 I307 I307 I307 I307 I307 I308 I308 I308 I308 I308 I309 I309 I309 I309 I310 I310 I310 I310 I310 I311 I311 I311 I311 I311 I312 I312 I312 I312 I313 I313 I313 I313 I313 I314 I314 I314 I314 I314 I315 I315 I315 I315 I316 I316 I316 I316 I316 I317 I317 I317 I317 I317 I318 I318 I318 I318 I319 I319 I319 I319 I319 I320 I320 I320 I320 I320 I321 I321 I321 I321 I322 I322 I322 I322 I322 I323 I323 I323 I323 I323 I324 I324 I324 I324 I325 I325 I325 I325 I325 I326 I326 I326 I326 I326 I327 I327 I327 I327 I328 I328 I328 I328 I328 I329 I329 I329 I329 I329 I330 I330 I330 I330 I331 I331 I331 I331 I331 I332 I332 I332 I332 I332 I333 I333 I333 I333 I334 I334 I334 I334 I334 I335 I335 I335 I335 I335 I336 I336 I336 I336 I337 I337 I337 I337 I337 I338 I338 I338 I338 I339 I339 I339 I339 I339 I340 I340 I340 I340 I340 I341 I341 I341 I341 I342 I342 I342 I342 I342 I343 I343 I343 I343 I343 I344 I344 I344 I344 I345 I345 I345 I345 I345 I346 I346 I346 I346 I346 I347 I347 I347 I347 I348 I348 I348 I348 I348 I349 I349 I349 I349 I350 I350 I350 I350 I350 I351 I351 I351 I351 I351 I352 I352 I352 I352 I353 I353 I353 I353 I353 I354 I354 I354 I354 I354 I355 I355 I355 I355 I356 I356 I356 I356 I356 I357 I357 I357
    357 PRT:11 ISR:6A90 I358 I358
    358 PRT:11 ISR:0000 I359 I359
    359 PRT:11 ISR:0000 I360 I360
    360 PRT:11 ISR:0000 I361 I361
    361 PRT:11 ISR:0000 I362 I362
    362 PRT:11 ISR:0000 I363 I363
    363 PRT:11 ISR:0000 I364 I364
    364 PRT:11 ISR:0000 I365 I365
    365 PRT:11 ISR:0000 I365 I366
    366 PRT:11 ISR:0000 I366 I367
    367 PRT:11 ISR:0000 I367 I368
    368 PRT:11 ISR:0000 I368 I368
    369 PRT:11 ISR:0000 I369 I369
    370 PRT:11 ISR:0000 I370 I370
    371 PRT:11 ISR:0000 I371 I371
    372 PRT:11 ISR:0000 I372 I372
    373 PRT:11 ISR:0000 I373 I373
    373 PRT:11 ISR:0000 I374 I374
    374 PRT:11 ISR:0000 I375 I375
    375 PRT:11 ISR:0000 I376 I376
    376 PRT:11 ISR:0000 I377 I377
    377 PRT:11 ISR:0000 I378 I378
  > 378 PRT:11 ISR:0000 I379 I379
    379 PRT:11 ISR:0000 I380 I380
    380 PRT:11 ISR:0000 I381 I381
    381 PRT:11 ISR:0000 I381 I382
    382 PRT:11 ISR:0000 I382 I383
    383 PRT:11 ISR:0000 I383 I384
    384 PRT:11 ISR:0000 I384 I385
    385 PRT:11 ISR:0000 I385 I385
    386 PRT:11 ISR:0000 I386 I386
    387 PRT:11 ISR:0000 I387 I387
--- End code ---


--- Quote from: Alectardy98 on Sat, 04 June 2022, 22:17:16 ---The online configuration tool is working well, but when I compile from the source code, the keyboard is not working and is stuck in a permanent loop.

--- End quote ---

Great. Glad to hear that the latest prebuild firmware works well with Z-150 AT.

OK. Let's discuss about your problem on github.


[0] Message Index

[#] Next page

[*] Previous page

Go to full version