Jump to content

kuldeepdhaka

Members
  • Content Count

    6
  • Joined

  • Last visited

About kuldeepdhaka

  • Rank
    Noob Class
  • Birthday April 9

Contact Methods

  • Website URL
    http://facebook.com/kuldeep.dhaka

Profile Information

  • Gender
    Male
  • Location
    INDIA
  • Interests
    learning, soccer
  • Github
    http://github.com/kuldeepdhaka
  1. i did some work on SSD1289 (3.2" 320x240) Im using two 74xx595 IC for data lines (to save pins). here's the repo: https://github.com/kuldeepdhaka/bitbang-ssd1289-using-msp430g2553 schematics : .../doc/schematics TODO: driver for touchscreen not working. PENIRQ is working perfect. Compiler: msp430-gcc note for admin: i wasnt able to upload svg file (tried twice, "This upload failed") , is their any problem with svg's.
  2. yes, one of the interrupt that i didnt disable (timer A1) was causing performance bottleneck. i moved the code in main and goes to sleep inside while. next time , timer A1 interrupt, it just wake up mps430. so their is not delay and when their are other interrupts, it plainly execute the main inside while() code and again goes to sleep. in your previous comment , i think you mentioned something like this. int main() { register uint8_t data; msp430_init(); port1_init(); vt100_init(); splash(); usci0_init(); timerA_init(); port2_init(); while(TRUE) { _BIS_SR(LPM1_bits + GIE); /* screen refresh { */ while(cqueue_count(uart_cqueue_rx)) { vt100.data = cqueue_pop(&uart_cqueue_rx); control(); } vt100_refresh(); /* } */ /* cursor blinking { */ /* make sure we dont overflow the cursor */ if(vt100.screen[vt100.cursor.row][0].double_width && vt100.cursor.col > VT100_WIDTH/2) { vt100.cursor.col /=2; } nokia1100_gotoyx(vt100.cursor.row, vt100.cursor.col * NOKIA1100_WIDTH_CHAR); vt100_print_char(vt100.cursor.row, vt100.cursor.col, vt100.mode.cursor_state); /* } */ } } void timerA0_interrupt() { vt100.mode.cursor_state ^= TRUE; } void timerA1_interrupt() { /* exit sleep mode to refresh screen */ __bic_status_register_on_exit(LPM1_bits); /* clear the interrupt flag */ TACCTL1 &= ~CCIFG; }
  3. earlier i was doing so, then i wrote this "infinite blinking led" to check if im getting a parity error. i also tried circular queue. but no help. not sure but lemme see. till now i think my code is more optimized. just to save push and pop in stack. elaborate a little . NOTE: A i disabled all interrupts except port2(receive data from keyboard) & timerA1 (this is needed to print data on screen) but it didnt helped. keyboard left alone for some time , shows same problem.
  4. A: yes mostly at 25 keys when i type "a for apple b for boy ".... slowly in one go, (sometimes it start occuring at 4/7/15 key but thats very rare, i think when i type fast error occurs early.) near 25 means between 18 - 27 is more frequent. Not tested tried diferent keystrokes, didnt work im supplying power to msp430 from USB and keyboard from external supply. Not-tested i have never seen any correlation between the error data and actuall data, though one thing was common that , everytime the error-data was mostly same as previous one. and some times no data was received.
  5. i have been sucessful(somewhat) in interfacing a PS2 keyboard with MSP430. usually for about ~25 keystrokes it works perfectly. after that parity error occurs in data and data after the corrupt-data is also corrupt. im supply keyboard 5V from external source and using POT to convert 5V to 3V. communication with keyboard is at 20-25Khz and MSP430 is running at 16Mhz. thing i tried (and didnt worked :-( ): tried another keyboard. circular queue to store temp data and then timer A1 to extract and decode. note: if im able to get first n data's then why is their a problem after that. im having 4 more interrupts going on (usci0_rx (@ 9600 baud, 4Mhz), usci_tx, timerA0 ( @ 7Hz), timerA1 ( @ 500Khz )). i have a MSP430G2553IN2. text data bss dec hex filename 6604 6 342 6952 1b28 build/diy-vt100.elf total code(see below) is in diy-vt100.tar.gz i had to remove doc/ , .git/ (size was ~100MB's) schematics are not according to project right now. ps2-scancode-en.c ps2.c port2.c port2.h ps2.h diy-vt100.tar.gz
  6. Hi all. just fool'n around. nice place to hang out.
×
×
  • Create New...