Jump to content

yoho

Members
  • Posts

    8
  • Joined

  • Last visited

Everything posted by yoho

  1. Hi all, I just stopped by to check if my experiences are right... 1 In my mios c program (user_tick function) i used a modulo division like counter%divider and divider was a unsigned, non zero value, which caused the program to crash and the pic to start over. Using a number did't. I could think of workarounds, but I am curious to hear yours 2 the same happened with 3 nested ifs, again I am working on a workaround, but I am equally happy to hear yours. Is there a list of Mios8 don't in C programming?
  2. Hi all, I found at the attic my never finished V3 seq. Decided to finish the build, but the soldering guide at ucapps.de is gone. I know it's not difficult, I saved most of the documents earlier, but I missed ie. where the caps at the pcb side should go. Anyone has a document or the pictures? Thanks a bunch!
  3. Thanks TK. I can compile again... and again. But there no installing on an iPad, because I don't have an developer account. Any chance somebody could include the installable app here, or is impossible install it that way?
  4. Hi all, I checked the source out to have a look, but things aren't compiling/linking. Can somebody explain? I added ../mois32 to the searchpath, but I'm still left with a couple of link errors. Cheers!
  5. After being offline for half a century: Getting one of the leds to show the shift status in this case the beat-led. In seq_leds.inc just after SEQ_LED_UpdateIRQ_NoBeat movlw DEFAULT_BEAT_INDICATOR_LED call MIOS_DOUT_PinSet insert this #if DEFAULT_SHIFT_ENABLED ;; Erik : update shift led SET_BSR SEQ_BASE clrf MIOS_PARAMETER1 BRA_IFCLR SEQ_BUTTON_SHIFT_STATE, SEQ_BUTTON_SHIFT, BANKED, SEQ_LED_UpdateIRQ_NoShift SEQ_LED_UpdateIRQ_Shift setf MIOS_PARAMETER1 SEQ_LED_UpdateIRQ_NoShift movlw DEFAULT_SHIFT_INDICATOR_LED call MIOS_DOUT_PinSet #endif ;; ---[ increment the LED row counter (used when DEFAULT_TRACK_LEDS_ENABLED set ]--- In setup_mbseq_v2.asm add this #define DEFAULT_SHIFT_INDICATOR_LED 0x07; And the shift led should work... To have the gp leds working with the shift go to seq_leds.inc again and edit SEQ_LED_UpdateIRQ_GPLED ;; transfer current LED pattern to IRQ_TMP[12] movff SEQ_GP_LED0, IRQ_TMP1 movff SEQ_GP_LED1, IRQ_TMP2 to look like this SEQ_LED_UpdateIRQ_GPLED ;; transfer current LED pattern to IRQ_TMP[12] #if DEFAULT_SHIFT_ENABLED BRA_IFCLR SEQ_BUTTON_SHIFT_STATE, SEQ_BUTTON_SHIFT, BANKED, SEQ_LED_UpdateIRQ_GPNoShift movff SEQ_GP_LED1, IRQ_TMP1 bra SEQ_LED_UpdateIRQ_GPEndShift SEQ_LED_UpdateIRQ_GPNoShift movff SEQ_GP_LED0, IRQ_TMP1 SEQ_LED_UpdateIRQ_GPEndShift #else movff SEQ_GP_LED0, IRQ_TMP1 movff SEQ_GP_LED1, IRQ_TMP2 #endif I skipped the one-button-track-change for now. I thought it is better to focus on the display changing steps with the shift status. Here's the challenge in seq_buttons.inc, first part we've seen before, how do I get this to work? ;; -------------------------------------------------------------------------- ;; Enable to shift ;; -------------------------------------------------------------------------- SEQ_BUTTON_Shift SET_BSR SEQ_BASE #if DEFAULT_BEHAVIOUR_BUTTON_SHIFT ;; Toggle Mode (default): ;; exit if button depressed btfsc MIOS_PARAMETER2, 0 return ;; else toggle status btg SEQ_BUTTON_SHIFT_STATE, SEQ_BUTTON_SHIFT, BANKED #else ;; On/Off Mode: ;; button status controls mode directly bcf SEQ_BUTTON_SHIFT_STATE, SEQ_MODE_SHIFT, BANKED btfss MIOS_PARAMETER2, 0 bsf SEQ_BUTTON_SHIFT_STATE, SEQ_MODE_NOSHIFT, BANKED #endif ;;Does this work??? BRA_IFCLR SEQ_BUTTON_SHIFT_STATE, SEQ_BUTTON_SHIFT, BANKED, seq_set_no_shift bsf SEQ_EVNTS, 2, BANKED rgoto seq_set_shift_update seq_set_no_shift bcf SEQ_EVNTS, 2, BANKED seq_set_shift_update ;; request display update bsf CS_STAT, CS_STAT_DISPLAY_UPDATE_REQ return
  6. I managed to find the solution myself: this code should be placed in seq_enc.inc SEQ_ENC_Handler ;; save encoder number in SEQ_CURRENT_STEP and SEQ_EVNTS SET_BSR SEQ_BASE ;; Altered for shift function BRA_IFCLR SEQ_BUTTON_SHIFT_STATE, SEQ_BUTTON_SHIFT, BANKED, SEQ_Enc_NoShift ;bsf MIOS_PARAMETER1, 3 ;Erik Add 8 to the encoder number... well 7 but it works ?!? movlw 7 addwf MIOS_PARAMETER1, 0 SEQ_Enc_NoShift I'm off to the next challenges: doing a one-button track change. Up till now it looks like (in seq_buttons.inc) this but isn't working :-) ;; -------------------------------------------------------------------------- ;; Select Track 1/2/3/4 ;; -------------------------------------------------------------------------- ;; Erik: Different for single button here! ;;SEQ_BUTTON_Track SET_BSR SEQ_BASE movwf SEQ_SELECTED_TRKS,BANKED rlncf W, 1, 0 andwf 0xf rgoto SEQ_BUTTON_Trackx_Cont SEQ_BUTTON_Track1
  7. Hi there, I have been inspired by the idea of MBSeq in a small box with not too much controls, 1 LCD and 8 encoders and some buttons and started working on a prototype. Due to parts I had, I started on a V2 seq, I had a "452" lying around :-) To implement a shift function this what I have done: in app_defines.h change ;; free: 0x16b to this: SEQ_BUTTON_SHIFT_STATE EQU 0x16b ;; free: 0x16b In seq_core.inc add this after the line with SEQ_MODE1_RECORD.. SEQ_BUTTON_NOSHIFT EQU 0 ; Shift buttons SEQ_BUTTON_SHIFT EQU 1 ; Ofcourse I added something like this to the setup*.asm (according to your own box) DIN_ENTRY SEQ_BUTTON_Shift, 3, 7 in seq_buttons.inc I added this after the SEQ_BUTTON_All function ;; -------------------------------------------------------------------------- ;; Enable to shift ;; -------------------------------------------------------------------------- SEQ_BUTTON_Shift SET_BSR SEQ_BASE #if DEFAULT_BEHAVIOUR_BUTTON_SHIFT ;; Toggle Mode (default): ;; exit if button depressed btfsc MIOS_PARAMETER2, 0 return ;; else toggle status btg SEQ_BUTTON_SHIFT_STATE, SEQ_BUTTON_SHIFT, BANKED #else ;; On/Off Mode: ;; button status controls mode directly bcf SEQ_BUTTON_SHIFT_STATE, SEQ_MODE_SHIFT, BANKED btfss MIOS_PARAMETER2, 0 bsf SEQ_BUTTON_SHIFT_STATE, SEQ_MODE_NOSHIFT, BANKED #endif return In seq_gp.inc in function SEQ_GP_function I added this (some lines repeated for the right line) SEQ_GP_Button ;; request display update bsf CS_STAT, CS_STAT_DISPLAY_UPDATE_REQ ;; the menu select function overlays everything SET_BSR SEQ_BASE BRA_IFSET SEQ_MODE0, SEQ_MODE0_MENU, BANKED, SEQ_GP_Mode4_Button ;; This is new: setting the gp no according to shift state: add 8 = setting bit 3 BRA_IFCLR SEQ_BUTTON_SHIFT_STATE, SEQ_BUTTON_SHIFT, BANKED, SEQ_GP_NoShift bsf MIOS_PARAMETER1, 3 SEQ_GP_NoShift up till now this is working ;-) well almost. The shift key does the job on GP buttons but, you can only see it working after pushing one... Pointers anyone? From here things get worse. I tried to "copy" this to the encoder function, but it is going wrong. I know that you have to add 8 to WREG but I didn't succeed in getting that working. The bit setting trick didn't work. So any help is appreciated SEQ_ENC_Handler ;; save encoder number in SEQ_CURRENT_STEP and SEQ_EVNTS SET_BSR SEQ_BASE ;;new: Altered for shift function BRA_IFCLR SEQ_BUTTON_SHIFT_STATE, SEQ_BUTTON_SHIFT, BANKED, SEQ_Enc_NoShift ;could be this ;bsf MIOS_PARAMETER1, 3 ;or this? addwf 8, 0, BANKED movf MIOS_PARAMETER1, W SEQ_Enc_NoShift This last piece of programming drama (being a pro: this brings me back to my programming kindergarten years) triggers all of them, but: all encoders are shifted one position: first enc does second value....last encoder does first value. And subtracting one from W just crashed the app. Can anyone shine a beautiful light? Cheers....
  8. Hi there, I moved my post to the Asm forum;
  9. With a :blush: i have to admit that it was a stupid thing forgetting the capacitor. I installed a cap under the pic (which is close to the lcd connector) and that worked! Thanks for the help! (note to self: don't save money on caps...)
  10. Hi all, I have a core and some on a veroboard. It is working ok. With a 16x2 LCD with backlight. If I replace this with a 40x2 (without connecting the backlight) the core gets confused. It keeps restarting and sometimes shows the application but mostly can't get past the MIOS intro. After a couple of restart it stops al together. Changing back to the 16x2 solves the problem. Power is at a steady 5V and the core keeps shouting through MIDI out for a download... Can somebody give a pointer how to solve this? Could the length of the wire (15 cm= 6 inch) be the problem? I've checked the diagram and only thing so far missing are the two 100n condensors on the powerlines near the PIC. I know those are there for a reason, but I didn't install them because all my stock was consumed by another project. Cheers, Erik
×
×
  • Create New...