Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

EPIC ISA, Rotary encoder code...Help me

Featured Replies

Hey Simmers, For those who experienced some difficuties or not... regarding to rotary encoder module, I completed building up the circuit from the back of the EPIC manual (The IC 74HC14,74HC74, and 74HC244). I wanted to try and test it running the TEST128, but apparently it did not come in sucessful solution with my EPIC ISA... What I did was, typing in EPL:;**********************************************;PANASONIC EVQ_EVM Rotary encoder module test#define FASTSCAN 0definemodule (1,FASTSCAN,3,7);Then on MS-DOS prompt I type in:EPL ROTENCResult: Complie SucessfullyOn MS-DOS, I, then type in:LOADEPIC ROSENCResult: (ERROR BOX APPEARS) illegal operation, and I have to restart my computer.Is there I did anything wrong? did you guys experiencing same problem that I have? if so, what is the solution? How can I solve it? I've tried to contact Ray Sotkiewicz through his e-mail, I never once get any reply from him... pls help me sort thing out, you'd be appreciated.Thanks

Hidid you put in your EPL ?:INIT{ senddata(7,0,0b11111111); senddata(7,1,0b11111111); senddata(7,2,0b11111111); senddata(7,3,0b11111111);};ob11111111 //for using 4 type 3 encoders00 //default01 //2phase optical10 //Alps11 //type 3 grayhill c62

Without seeing your complete EPL code, I can't really say for sure what is happening.A ground rule about FASTSCAN tho'1. You can only define up to 3 rows for FASTSCAN PER EPIC! (NOT per module!!!)This said, I am assuming you have Ralph's Rotary Encoder module, or one of my QRC's?If you have Ralph's encoder module, here's the syntax to configure it properly:definemodule(7, FASTSCAN, 0, 3)definemodule(7, SLOWSCAN, 3, 10)This defines the following:the line "definemodule(7, FASTSCAN, 0, 3)" defines the first 3 rows of module 7 as FASTSCAN, starting at row 0, and then 3 rows, starting at row 0.In plain english, this defines rows 0,1,2 on module 7 as FASTSCANThe second line "definemodule(7, SLOWSCAN, 3, 10)" defines rows 3 through 12 as SLOWSCAN on Module 7.To further complicate matters, you need to tell EPIC just *HOW* to configure each encoder!This should be in your INIT{} section. Mine areas follows:Senddata(7,0,0b01010101)Senddata(7,1,0b01010101)Senddata(7,2,0b01010101)Senddata(7,3,0b01010101)This says to configure Module 7, rows 0-3 as a specific type of encoder. In this section I've found no logic, other than trial and error... In Theory, one detent on a rotary should give you an Epic 'Event'. If the Senddata() lines are not configured correctly, you will see weird results. If you do, try the following variations:Senddata(7,0,0b11111111)Senddata(7,1,0b11111111)Senddata(7,2,0b11111111)--OR--Senddata(7,0,0b00000000)Senddata(7,1,0b00000000)Senddata(7,2,0b00000000)Don't try anyting weird like Senddata(7,0,0b01011001) because it most likely won't work. Your life will be easier by using all the same type of rotaries throughout your sim.Let me know your thoughts, and a bit more about what you have the rotaries connected to, Robert~Best Regards~!--Ray S."There are 10 kinds of people. Those who understand binary, and those who don't"ps: Ignore my blurb on defining the encoder types... Amarante said it best in his post...

Ray S.

 

Check out my aviation portfolio:

http://scottshangar.net

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.